Skip to content

Commit

Permalink
Merge pull request #54 from jornane/patch-2
Browse files Browse the repository at this point in the history
Do not cast to BIO_ADDR when using LibreSSL
  • Loading branch information
Fabian Mauchle authored and GitHub committed Sep 24, 2019
2 parents f29c7e9 + 14a0eb7 commit e7649a1
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) || defined(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 e7649a1

Please sign in to comment.