summaryrefslogtreecommitdiff
path: root/dev-python/aioquic/files/patch-src_aioquic__crypto_c
blob: df7460bbdaae59dfba5d27214adc01dd14333f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: src/aioquic/_crypto.c
--- src/aioquic/_crypto.c.orig
+++ src/aioquic/_crypto.c
@@ -407,10 +407,13 @@ PyInit__crypto(void)
     PyModule_AddObject(m, "HeaderProtection", HeaderProtectionType);
 
     // ensure required ciphers are initialised
+    // LibreSSL loads all cipher by default, and doesn't support add_cipher
+#ifndef LIBRESSL_VERSION_NUMBER
     EVP_add_cipher(EVP_aes_128_ecb());
     EVP_add_cipher(EVP_aes_128_gcm());
     EVP_add_cipher(EVP_aes_256_ecb());
     EVP_add_cipher(EVP_aes_256_gcm());
+#endif
 
     return m;
 }