diff options
Diffstat (limited to 'testcode/petal.c')
-rw-r--r-- | testcode/petal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testcode/petal.c b/testcode/petal.c index dcc31fdc5d99..123684aab52d 100644 --- a/testcode/petal.c +++ b/testcode/petal.c @@ -234,7 +234,9 @@ setup_ctx(char* key, char* cert) { SSL_CTX* ctx = SSL_CTX_new(SSLv23_server_method()); if(!ctx) print_exit("out of memory"); +#if SSL_OP_NO_SSLv2 != 0 (void)SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2); +#endif (void)SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv3); if(!SSL_CTX_use_certificate_chain_file(ctx, cert)) print_exit("cannot read cert"); |