mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
- In unit test use openssl set security level to allow keys in test.
This commit is contained in:
parent
c639dc956a
commit
f5d53928a3
2 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
4 August 2021: Wouter
|
||||||
|
- In unit test use openssl set security level to allow keys in test.
|
||||||
|
|
||||||
3 August 2021: George
|
3 August 2021: George
|
||||||
- Listen to read or write events after the SSL handshake.
|
- Listen to read or write events after the SSL handshake.
|
||||||
Sticky events on windows would stick on read when write was needed.
|
Sticky events on windows would stick on read when write was needed.
|
||||||
|
|
|
||||||
|
|
@ -238,6 +238,9 @@ setup_ctx(char* key, char* cert)
|
||||||
(void)SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2);
|
(void)SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2);
|
||||||
#endif
|
#endif
|
||||||
(void)SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv3);
|
(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))
|
if(!SSL_CTX_use_certificate_chain_file(ctx, cert))
|
||||||
print_exit("cannot read cert");
|
print_exit("cannot read cert");
|
||||||
if(!SSL_CTX_use_PrivateKey_file(ctx, key, SSL_FILETYPE_PEM))
|
if(!SSL_CTX_use_PrivateKey_file(ctx, key, SSL_FILETYPE_PEM))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue