Skip to content

Commit

Permalink
shttpd: SSL_OP_NO_TLSv1_1/2 needs OPENSSL_VERSION_NUMBER >= 0x10001000L
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaempf committed Oct 28, 2014
1 parent 14f95d5 commit a307a12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/shttpd/config.c
Original file line number Diff line number Diff line change
@@ -134,8 +134,10 @@ set_ssl(struct shttpd_ctx *ctx, void *arg, const char *pem)
{ "SSLv2", SSL_OP_NO_SSLv2 },
{ "SSLv3", SSL_OP_NO_SSLv3 },
{ "TLSv1", SSL_OP_NO_TLSv1 },
# if OPENSSL_VERSION_NUMBER >= 0x10001000L
{ "TLSv1_1", SSL_OP_NO_TLSv1_1 },
{ "TLSv1_2", SSL_OP_NO_TLSv1_2 },
# endif
{ NULL, 0 }
};
char *blank_ptr;

0 comments on commit a307a12

Please sign in to comment.