Skip to content

Commit

Permalink
Fix ISO C90 compat introduced by PR#9
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Mauchle committed Jun 10, 2018
1 parent 4495084 commit 5cfc65a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tlscommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ static SSL_CTX *tlscreatectx(uint8_t type, struct tls *conf) {
}

#if OPENSSL_VERSION_NUMBER < 0x10100000L
{
long sslversion = SSLeay();
if (sslversion < 0x00908100L ||
(sslversion >= 0x10000000L && sslversion < 0x10000020L)) {
Expand All @@ -378,6 +379,7 @@ static SSL_CTX *tlscreatectx(uint8_t type, struct tls *conf) {
__func__, SSLeay_version(SSLEAY_VERSION), ctx);
SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_OFF);
}
}
#endif

if (conf->certkeypwd) {
Expand Down

0 comments on commit 5cfc65a

Please sign in to comment.