projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix incomplete checks for EVP_CIPHER_asn1_to_param
[openssl.git]
/
crypto
/
evp
/
evp_lib.c
diff --git
a/crypto/evp/evp_lib.c
b/crypto/evp/evp_lib.c
index 8a664335128b16dc8437ac1b48fe4892601be2b7..91f72aa930ed009954cfe55b8d90f9b80e9cb847 100644
(file)
--- a/
crypto/evp/evp_lib.c
+++ b/
crypto/evp/evp_lib.c
@@
-209,7
+209,7
@@
int evp_cipher_asn1_to_param_ex(EVP_CIPHER_CTX *c, ASN1_TYPE *type,
break;
default:
- ret = EVP_CIPHER_get_asn1_iv(c, type);
+ ret = EVP_CIPHER_get_asn1_iv(c, type)
>= 0 ? 1 : -1
;
}
} else if (cipher->prov != NULL) {
OSSL_PARAM params[3], *p = params;