mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Use default ASN1 if flag set.
This commit is contained in:
parent
b68c13154e
commit
83e9c36261
@ -80,6 +80,8 @@ int EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type)
|
|||||||
|
|
||||||
if (c->cipher->get_asn1_parameters != NULL)
|
if (c->cipher->get_asn1_parameters != NULL)
|
||||||
ret=c->cipher->get_asn1_parameters(c,type);
|
ret=c->cipher->get_asn1_parameters(c,type);
|
||||||
|
else if (c->cipher->flags & EVP_CIPH_FLAG_DEFAULT_ASN1)
|
||||||
|
ret=EVP_CIPHER_get_asn1_iv(c, type);
|
||||||
else
|
else
|
||||||
ret=-1;
|
ret=-1;
|
||||||
return(ret);
|
return(ret);
|
||||||
|
Loading…
Reference in New Issue
Block a user