Skip to content

Commit 3441f87

Browse files
catapjlaine
authored andcommitted
LibreSSL loads all cipher by default, and doesn't support add_cipher
1 parent f00cd78 commit 3441f87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/aioquic/_crypto.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,13 @@ PyInit__crypto(void)
407407
PyModule_AddObject(m, "HeaderProtection", HeaderProtectionType);
408408

409409
// ensure required ciphers are initialised
410+
// LibreSSL loads all cipher by default, and doesn't support add_cipher
411+
#ifndef LIBRESSL_VERSION_NUMBER
410412
EVP_add_cipher(EVP_aes_128_ecb());
411413
EVP_add_cipher(EVP_aes_128_gcm());
412414
EVP_add_cipher(EVP_aes_256_ecb());
413415
EVP_add_cipher(EVP_aes_256_gcm());
416+
#endif
414417

415418
return m;
416419
}

0 commit comments

Comments
 (0)