Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd4dacb

Browse files
committed
Fix compile on NetBSD 5.0 (or anything else using an old 0.9.9-dev OpenSSL).
1 parent 2501aca commit bd4dacb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Modules/_ssl.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ static unsigned int _ssl_locks_count = 0;
113113
# undef HAVE_OPENSSL_RAND
114114
#endif
115115

116-
/* SSL_CTX_clear_options() and SSL_clear_options() were first added in OpenSSL 0.9.8m */
117-
#if OPENSSL_VERSION_NUMBER >= 0x009080dfL
116+
/* SSL_CTX_clear_options() and SSL_clear_options() were first added in
117+
* OpenSSL 0.9.8m but do not appear in some 0.9.9-dev versions such the
118+
* 0.9.9 from "May 2008" that NetBSD 5.0 uses. */
119+
#if OPENSSL_VERSION_NUMBER >= 0x009080dfL && OPENSSL_VERSION_NUMBER != 0x00909000L
118120
# define HAVE_SSL_CTX_CLEAR_OPTIONS
119121
#else
120122
# undef HAVE_SSL_CTX_CLEAR_OPTIONS

0 commit comments

Comments
 (0)