diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-05-29 17:11:48 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-06-13 15:13:21 +0200 |
commit | 7e8dbb74620ac4420ad4d3adca51ce1b9a3e114c (patch) | |
tree | e1d5b457b093411e541e583590bcdb74a10eed33 /crypto | |
parent | 1a27fe4be2223fcd88fdf9849bfabf7c6818796c (diff) |
Bug fix in ossl_cmp_hdr_init(): sould not remember recipient as expected sender
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11998)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/cmp/cmp_hdr.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/cmp/cmp_hdr.c b/crypto/cmp/cmp_hdr.c index 4b98a598cd..364d89a9b0 100644 --- a/crypto/cmp/cmp_hdr.c +++ b/crypto/cmp/cmp_hdr.c @@ -330,10 +330,6 @@ int ossl_cmp_hdr_init(OSSL_CMP_CTX *ctx, OSSL_CMP_PKIHEADER *hdr) rcp = X509_get_issuer_name(ctx->cert); if (!ossl_cmp_hdr_set1_recipient(hdr, rcp)) return 0; - /* set also as expected_sender of responses unless set explicitly */ - if (ctx->expected_sender == NULL && rcp != NULL - && !OSSL_CMP_CTX_set1_expected_sender(ctx, rcp)) - return 0; /* set current time as message time */ if (!ossl_cmp_hdr_update_messageTime(hdr)) |