diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-06-29 11:11:05 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-06-30 10:38:23 +0200 |
commit | 1986f6152fe3766c99f1f18d90028ba940d6923b (patch) | |
tree | 1d1765ecd4acb21275819ff2e4661526e9de2654 /crypto/cmp | |
parent | 66be663b64e05fb5524edd051b85fb919f59e054 (diff) |
OSSL_CRMF_{CERTTEMPLATE,CERTID}_get0_serialNumber(): Make result const for consistency
Also make doc/man3/OSSL_CRMF_MSG_get0_tmpl.pod consistent with crmf.h.in regarding const results
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15790)
Diffstat (limited to 'crypto/cmp')
-rw-r--r-- | crypto/cmp/cmp_client.c | 2 | ||||
-rw-r--r-- | crypto/cmp/cmp_server.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/cmp/cmp_client.c b/crypto/cmp/cmp_client.c index f8d9f0749c..c7674ce088 100644 --- a/crypto/cmp/cmp_client.c +++ b/crypto/cmp/cmp_client.c @@ -810,7 +810,7 @@ int OSSL_CMP_exec_RR_ses(OSSL_CMP_CTX *ctx) OSSL_CRMF_CERTTEMPLATE *tmpl = sk_OSSL_CMP_REVDETAILS_value(rr->body->value.rr, rsid)->certDetails; const X509_NAME *issuer = OSSL_CRMF_CERTTEMPLATE_get0_issuer(tmpl); - ASN1_INTEGER *serial = OSSL_CRMF_CERTTEMPLATE_get0_serialNumber(tmpl); + const ASN1_INTEGER *serial = OSSL_CRMF_CERTTEMPLATE_get0_serialNumber(tmpl); if (sk_OSSL_CRMF_CERTID_num(rrep->revCerts) != num_RevDetails) { ERR_raise(ERR_LIB_CMP, CMP_R_WRONG_RP_COMPONENT_COUNT); diff --git a/crypto/cmp/cmp_server.c b/crypto/cmp/cmp_server.c index 59847f5fe1..6f3409468d 100644 --- a/crypto/cmp/cmp_server.c +++ b/crypto/cmp/cmp_server.c @@ -247,7 +247,7 @@ static OSSL_CMP_MSG *process_rr(OSSL_CMP_SRV_CTX *srv_ctx, OSSL_CRMF_CERTID *certId = NULL; OSSL_CRMF_CERTTEMPLATE *tmpl; const X509_NAME *issuer; - ASN1_INTEGER *serial; + const ASN1_INTEGER *serial; OSSL_CMP_PKISI *si; if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) |