summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2023-04-14 15:00:39 +0200
committerDr. David von Oheimb <dev@ddvo.net>2023-04-18 08:16:01 +0200
commit8b6bbcaa7bd2f0b44d7d0d867acc6002ba09a6fd (patch)
treec1dc0185b3bef2fecd7ca7701c9f2f17241cfc6d
parent09f30b0c96e39e3a07f8e6854c5468332534c585 (diff)
downloadopenssl-new-8b6bbcaa7bd2f0b44d7d0d867acc6002ba09a6fd.tar.gz
crmf_lib.c: clean up coments on OSSL_CRMF_CERTTEMPLATE*()
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/20736)
-rw-r--r--crypto/crmf/crmf_lib.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/crypto/crmf/crmf_lib.c b/crypto/crmf/crmf_lib.c
index 86152ee247..6fc7c91095 100644
--- a/crypto/crmf/crmf_lib.c
+++ b/crypto/crmf/crmf_lib.c
@@ -547,7 +547,6 @@ X509_PUBKEY
return tmpl != NULL ? tmpl->publicKey : NULL;
}
-/* retrieves the serialNumber of the given cert template or NULL on error */
const ASN1_INTEGER
*OSSL_CRMF_CERTTEMPLATE_get0_serialNumber(const OSSL_CRMF_CERTTEMPLATE *tmpl)
{
@@ -560,7 +559,6 @@ const X509_NAME
return tmpl != NULL ? tmpl->subject : NULL;
}
-/* retrieves the issuer name of the given cert template or NULL on error */
const X509_NAME
*OSSL_CRMF_CERTTEMPLATE_get0_issuer(const OSSL_CRMF_CERTTEMPLATE *tmpl)
{
@@ -573,14 +571,12 @@ X509_EXTENSIONS
return tmpl != NULL ? tmpl->extensions : NULL;
}
-/* retrieves the issuer name of the given CertId or NULL on error */
const X509_NAME *OSSL_CRMF_CERTID_get0_issuer(const OSSL_CRMF_CERTID *cid)
{
return cid != NULL && cid->issuer->type == GEN_DIRNAME ?
cid->issuer->d.directoryName : NULL;
}
-/* retrieves the serialNumber of the given CertId or NULL on error */
const ASN1_INTEGER *OSSL_CRMF_CERTID_get0_serialNumber(const OSSL_CRMF_CERTID
*cid)
{
@@ -588,8 +584,8 @@ const ASN1_INTEGER *OSSL_CRMF_CERTID_get0_serialNumber(const OSSL_CRMF_CERTID
}
/*-
- * fill in certificate template.
- * Any value argument that is NULL will leave the respective field unchanged.
+ * Fill in the certificate template |tmpl|.
+ * Any other NULL argument will leave the respective field unchanged.
*/
int OSSL_CRMF_CERTTEMPLATE_fill(OSSL_CRMF_CERTTEMPLATE *tmpl,
EVP_PKEY *pubkey,