Mercurial > dovecot > core-2.3
changeset 26340:41551b55b93e
lib-dcrypt: Use len instead of ln
author | Aki Tuomi <aki.tuomi@open-xchange.com> |
---|---|
date | Fri, 23 Aug 2019 13:46:33 +0300 |
parents | b989f49e16a0 |
children | 671182f4a7f0 |
files | src/lib-dcrypt/dcrypt-openssl.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-dcrypt/dcrypt-openssl.c Mon Aug 19 12:11:59 2019 +0300 +++ b/src/lib-dcrypt/dcrypt-openssl.c Fri Aug 23 13:46:33 2019 +0300 @@ -1656,10 +1656,10 @@ } int enctype = DCRYPT_KEY_ENCRYPTION_TYPE_NONE; - int ln = OBJ_obj2txt(objtxt, sizeof(objtxt), obj, 1); - if (ln < 1) + int len = OBJ_obj2txt(objtxt, sizeof(objtxt), obj, 1); + if (len < 1) return dcrypt_openssl_error(error_r); - if (ln > (int)sizeof(objtxt)) { + if (len > (int)sizeof(objtxt)) { if (error_r != NULL) *error_r = "Object identifier too long"; return FALSE; @@ -1671,10 +1671,10 @@ if (EVP_PKEY_base_id(pkey) == EVP_PKEY_RSA) { unsigned char *ptr; RSA *rsa = EVP_PKEY_get0_RSA(pkey); - int ln = i2d_RSAPrivateKey(rsa, &ptr); - if (ln < 1) + int len = i2d_RSAPrivateKey(rsa, &ptr); + if (len < 1) return dcrypt_openssl_error(error_r); - buffer_append(buf, ptr, ln); + buffer_append(buf, ptr, len); } else if (EVP_PKEY_base_id(pkey) == EVP_PKEY_EC) { unsigned char *ptr; EC_KEY *eckey = EVP_PKEY_get0_EC_KEY(pkey);