diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_ameth.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_ameth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_ameth.c b/src/lib/libcrypto/rsa/rsa_ameth.c index 8faddcee1c..aa911251cc 100644 --- a/src/lib/libcrypto/rsa/rsa_ameth.c +++ b/src/lib/libcrypto/rsa/rsa_ameth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_ameth.c,v 1.16 2016/10/19 16:49:11 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_ameth.c,v 1.17 2016/12/30 15:47:07 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -588,7 +588,7 @@ rsa_item_sign(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, | |||
588 | /* need to embed algorithm ID inside another */ | 588 | /* need to embed algorithm ID inside another */ |
589 | mgf1alg = X509_ALGOR_new(); | 589 | mgf1alg = X509_ALGOR_new(); |
590 | X509_ALGOR_set_md(mgf1alg, mgf1md); | 590 | X509_ALGOR_set_md(mgf1alg, mgf1md); |
591 | if (!ASN1_item_pack(mgf1alg, ASN1_ITEM_rptr(X509_ALGOR), | 591 | if (!ASN1_item_pack(mgf1alg, &X509_ALGOR_it, |
592 | &stmp)) | 592 | &stmp)) |
593 | goto err; | 593 | goto err; |
594 | pss->maskGenAlgorithm = X509_ALGOR_new(); | 594 | pss->maskGenAlgorithm = X509_ALGOR_new(); |
@@ -598,7 +598,7 @@ rsa_item_sign(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, | |||
598 | OBJ_nid2obj(NID_mgf1), V_ASN1_SEQUENCE, stmp); | 598 | OBJ_nid2obj(NID_mgf1), V_ASN1_SEQUENCE, stmp); |
599 | } | 599 | } |
600 | /* Finally create string with pss parameter encoding. */ | 600 | /* Finally create string with pss parameter encoding. */ |
601 | if (!ASN1_item_pack(pss, ASN1_ITEM_rptr(RSA_PSS_PARAMS), &os1)) | 601 | if (!ASN1_item_pack(pss, &RSA_PSS_PARAMS_it, &os1)) |
602 | goto err; | 602 | goto err; |
603 | if (alg2) { | 603 | if (alg2) { |
604 | os2 = ASN1_STRING_dup(os1); | 604 | os2 = ASN1_STRING_dup(os1); |