diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2021-08-16 23:55:17 +0000 | 
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2021-08-16 23:57:03 +0000 | 
| commit | 625f1c1312fb7defbd148c8ba121a0cf058707ef (patch) | |
| tree | 31510b9372850c8a8dd3e0a8dac37308308d8429 /testcode/petal.c | |
| parent | d60fa10fd872db7e3d8cb1e161cfdae026c43b14 (diff) | |
Diffstat (limited to 'testcode/petal.c')
| -rw-r--r-- | testcode/petal.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/testcode/petal.c b/testcode/petal.c index 123684aab52d..a1a37615518a 100644 --- a/testcode/petal.c +++ b/testcode/petal.c @@ -238,6 +238,9 @@ setup_ctx(char* key, char* cert)  	(void)SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2);  #endif  	(void)SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv3); +#ifdef HAVE_SSL_CTX_SET_SECURITY_LEVEL +	SSL_CTX_set_security_level(ctx, 0); /* for keys in tests */ +#endif  	if(!SSL_CTX_use_certificate_chain_file(ctx, cert))  		print_exit("cannot read cert");  	if(!SSL_CTX_use_PrivateKey_file(ctx, key, SSL_FILETYPE_PEM)) | 
