Mercurial > dovecot > core-2.2
changeset 20644:39e0e7314bec
dcrypt: Retrieve key length correctly
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Mon, 15 Aug 2016 11:27:04 +0300 |
parents | 6428c91a9548 |
children | 105fd4030fe0 |
files | src/lib-dcrypt/dcrypt-openssl.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-dcrypt/dcrypt-openssl.c Sat Aug 13 14:31:08 2016 +0300 +++ b/src/lib-dcrypt/dcrypt-openssl.c Mon Aug 15 11:27:04 2016 +0300 @@ -282,7 +282,7 @@ static unsigned int dcrypt_openssl_ctx_sym_get_key_length(struct dcrypt_context_symmetric *ctx) { - return EVP_CIPHER_iv_length(ctx->cipher); + return EVP_CIPHER_key_length(ctx->cipher); } static unsigned int dcrypt_openssl_ctx_sym_get_iv_length(struct dcrypt_context_symmetric *ctx)