diff options
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ktls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/ktls.c b/ssl/ktls.c index e6c0963259..dc5bb2bbc3 100644 --- a/ssl/ktls.c +++ b/ssl/ktls.c @@ -158,9 +158,9 @@ int ktls_configure_crypto(const SSL *s, const EVP_CIPHER *c, EVP_CIPHER_CTX *dd, if (s->version == TLS1_2_VERSION && EVP_CIPHER_mode(c) == EVP_CIPH_GCM_MODE) { - if (!EVP_CIPHER_CTX_get_iv_state(dd, geniv, - EVP_GCM_TLS_FIXED_IV_LEN - + EVP_GCM_TLS_EXPLICIT_IV_LEN)) + if (!EVP_CIPHER_CTX_get_updated_iv(dd, geniv, + EVP_GCM_TLS_FIXED_IV_LEN + + EVP_GCM_TLS_EXPLICIT_IV_LEN)) return 0; iiv = geniv; } |