View | Details | Raw Unified | Return to bug 227542
Collapse All | Expand All

(-)b/devel/grpc/files/patch-src_core_tsi_alts_crypt_aes__gcm.cc (+11 lines)
Added Link Here
1
--- src/core/tsi/alts/crypt/aes_gcm.cc.orig	2018-04-16 04:55:21 UTC
2
+++ src/core/tsi/alts/crypt/aes_gcm.cc
3
@@ -185,7 +185,7 @@ static grpc_status_code aes_gcm_derive_aead_key(uint8_
4
                                                 const uint8_t* kdf_counter) {
5
   unsigned char buf[EVP_MAX_MD_SIZE];
6
   unsigned char ctr = 1;
7
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
8
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
9
   HMAC_CTX hmac;
10
   HMAC_CTX_init(&hmac);
11
   if (!HMAC_Init_ex(&hmac, kdf_key, kKdfKeyLen, EVP_sha256(), nullptr) ||
(-)b/devel/grpc/files/patch-src_core_tsi_ssl__transport__security.cc (+9 lines)
Lines 24-26 Link Here
24
 #endif
24
 #endif
25
 
25
 
26
 /* TODO(jboeuf): I have not found a way to get this number dynamically from the
26
 /* TODO(jboeuf): I have not found a way to get this number dynamically from the
27
@@ -1547,7 +1546,7 @@ tsi_result tsi_create_ssl_client_handshaker_factory_wi
28
                                   options->cipher_suites);
29
     if (result != TSI_OK) break;
30
 
31
-#if OPENSSL_VERSION_NUMBER >= 0x10100000
32
+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
33
     // X509_STORE_up_ref is only available since OpenSSL 1.1.
34
     if (options->root_store != nullptr) {
35
       X509_STORE_up_ref(options->root_store->store);

Return to bug 227542