Skip to content

Commit

Permalink
Disable keylog callback support for LibreSSL
Browse files Browse the repository at this point in the history
LibreSSL (as of 3.1.1) does not provide SSL_CTX_set_keylog_callback().
Don't define HAVE_KEYLOG_CALLBACK in this case.
  • Loading branch information
michael-o committed May 11, 2020
1 parent ebf0f74 commit 14f47ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion native/include/ssl_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
#define TLS_server_method SSLv23_server_method
#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) */

#if OPENSSL_VERSION_NUMBER >= 0x10101000L
#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER)
#define HAVE_KEYLOG_CALLBACK
#endif

Expand Down
3 changes: 3 additions & 0 deletions xdocs/miscellaneous/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
<update>
Improve OS-specific header include for native thread id. (michaelo)
</update>
<fix>
Disable keylog callback support for LibreSSL. (michaelo)
</fix>
</changelog>
</section>
<section name="Changes in 1.2.24">
Expand Down

0 comments on commit 14f47ff

Please sign in to comment.