Skip to content

Commit

Permalink
Do not cast to BIO_ADDR when using LibreSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
Jørn Åne authored and GitHub committed Sep 10, 2019
1 parent 4c259c9 commit d391d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ void *dtlslistener(void *arg) {
BIO_set_fd(SSL_get_rbio(conf->tlsconf->dtlssslprep), s, BIO_NOCLOSE);
}

#if OPENSSL_VERSION_NUMBER < 0x10100000
#if OPENSSL_VERSION_NUMBER < 0x10100000 || LIBRESSL_VERSION_NUMBER
if(DTLSv1_listen(conf->tlsconf->dtlssslprep, &from) > 0) {
#else
if(DTLSv1_listen(conf->tlsconf->dtlssslprep, (BIO_ADDR *)&from) > 0) {
Expand Down

0 comments on commit d391d28

Please sign in to comment.