summaryrefslogtreecommitdiff
path: root/testcode/petal.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2020-05-21 05:01:52 +0000
committerCy Schubert <cy@FreeBSD.org>2020-05-21 05:01:52 +0000
commit6a53c00e64c4cf911eb00846733d9e6a47b2e7f4 (patch)
tree60a7720d2d4edfe62b094e2665743e8879ebb911 /testcode/petal.c
parente2fe726866d062155f6b1aae749375475ef19191 (diff)
downloadsrc-test2-6a53c00e64c4cf911eb00846733d9e6a47b2e7f4.tar.gz
src-test2-6a53c00e64c4cf911eb00846733d9e6a47b2e7f4.zip
Notes
Diffstat (limited to 'testcode/petal.c')
-rw-r--r--testcode/petal.c2
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");