5 OSSL_CRMF_MSG_get0_tmpl,
6 OSSL_CRMF_CERTTEMPLATE_get0_serialNumber,
7 OSSL_CRMF_CERTTEMPLATE_get0_issuer,
8 OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert,
9 OSSL_CRMF_MSG_get_certReqId
10 - functions reading from CRMF CertReqMsg structures
14 #include <openssl/crmf.h>
16 OSSL_CRMF_CERTTEMPLATE *OSSL_CRMF_MSG_get0_tmpl(const OSSL_CRMF_MSG *crm);
18 *OSSL_CRMF_CERTTEMPLATE_get0_serialNumber(OSSL_CRMF_CERTTEMPLATE *tmpl);
19 X509_NAME *OSSL_CRMF_CERTTEMPLATE_get0_issuer(OSSL_CRMF_CERTTEMPLATE *tmpl);
21 X509 *OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert(OSSL_CRMF_ENCRYPTEDVALUE *ecert,
24 int OSSL_CRMF_MSG_get_certReqId(OSSL_CRMF_MSG *crm);
29 OSSL_CRMF_MSG_get0_tmpl() retrieves the certificate template of B<crm>.
31 OSSL_CRMF_CERTTEMPLATE_get0_serialNumber() retrieves the serialNumber of the
32 given certificate template B<tmpl>.
34 OSSL_CRMF_CERTTEMPLATE_get0_issuer() retrieves the issuer name of the
35 given certificate template B<tmpl>.
37 OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() decrypts the certificate in the given
38 encryptedValue B<ecert>, using the private key B<pkey>.
39 This is needed for the indirect PoP method as in RFC 4210 section 5.2.8.2.
40 The function returns the decrypted certificate as a copy, leaving its ownership
41 with the caller, who is responsible for freeing it.
43 OSSL_CRMF_MSG_get_certReqId() retrieves the certReqId of B<crm>.
48 OSSL_CRMF_MSG_get_certReqId() returns the certificate request ID as a
49 non-negative integer or -1 on error.
51 All other functions return a pointer with the intended result or NULL on error.
59 Copyright 2007-2018 The OpenSSL Project Authors. All Rights Reserved.
61 Licensed under the OpenSSL license (the "License"). You may not use
62 this file except in compliance with the License. You can obtain a copy
63 in the file LICENSE in the source distribution or at
64 L<https://www.openssl.org/source/license.html>.