5 OSSL_CRMF_MSG_get0_tmpl,
6 OSSL_CRMF_CERTTEMPLATE_get0_serialNumber,
7 OSSL_CRMF_CERTTEMPLATE_get0_issuer,
8 OSSL_CRMF_CERTID_get0_serialNumber,
9 OSSL_CRMF_CERTID_get0_issuer,
10 OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert,
11 OSSL_CRMF_MSG_get_certReqId
12 - functions reading from CRMF CertReqMsg structures
16 #include <openssl/crmf.h>
18 OSSL_CRMF_CERTTEMPLATE *OSSL_CRMF_MSG_get0_tmpl(const OSSL_CRMF_MSG *crm);
20 *OSSL_CRMF_CERTTEMPLATE_get0_serialNumber(const OSSL_CRMF_CERTTEMPLATE *tmpl);
22 *OSSL_CRMF_CERTTEMPLATE_get0_issuer(const OSSL_CRMF_CERTTEMPLATE *tmpl);
24 ASN1_INTEGER *OSSL_CRMF_CERTID_get0_serialNumber(const OSSL_CRMF_CERTID *cid);
25 const X509_NAME *OSSL_CRMF_CERTID_get0_issuer(const OSSL_CRMF_CERTID *cid);
28 *OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert(const OSSL_CRMF_ENCRYPTEDVALUE *ecert,
29 OPENSSL_CTX *libctx, const char *propq,
32 int OSSL_CRMF_MSG_get_certReqId(const OSSL_CRMF_MSG *crm);
37 OSSL_CRMF_MSG_get0_tmpl() retrieves the certificate template of I<crm>.
39 OSSL_CRMF_CERTTEMPLATE_get0_serialNumber() retrieves the serialNumber of the
40 given certificate template I<tmpl>.
42 OSSL_CRMF_CERTTEMPLATE_get0_issuer() retrieves the issuer name of the
43 given certificate template I<tmpl>.
45 OSSL_CRMF_CERTID_get0_serialNumber retrieves the serialNumber
46 of the given CertId I<cid>.
48 OSSL_CRMF_CERTID_get0_issuer retrieves the issuer name
49 of the given CertId I<cid>, which must be of ASN.1 type GEN_DIRNAME.
51 OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() decrypts the certificate in the given
52 encryptedValue I<ecert>, using the private key I<pkey>, library context
53 I<libctx> and property query string I<propq> (see L<OPENSSL_CTX(3)>).
54 This is needed for the indirect POPO method as in RFC 4210 section 5.2.8.2.
55 The function returns the decrypted certificate as a copy, leaving its ownership
56 with the caller, who is responsible for freeing it.
58 OSSL_CRMF_MSG_get_certReqId() retrieves the certReqId of I<crm>.
63 OSSL_CRMF_MSG_get_certReqId() returns the certificate request ID as a
64 nonnegative integer or -1 on error.
66 All other functions return a pointer with the intended result or NULL on error.
74 The OpenSSL CRMF support was added in OpenSSL 3.0.
78 Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved.
80 Licensed under the Apache License 2.0 (the "License"). You may not use
81 this file except in compliance with the License. You can obtain a copy
82 in the file LICENSE in the source distribution or at
83 L<https://www.openssl.org/source/license.html>.