1OSSL_CRMF_MSG_GET0_TMPL(3ossl) OpenSSL OSSL_CRMF_MSG_GET0_TMPL(3ossl)
2
3
4
6 OSSL_CRMF_MSG_get0_tmpl, OSSL_CRMF_CERTTEMPLATE_get0_serialNumber,
7 OSSL_CRMF_CERTTEMPLATE_get0_subject,
8 OSSL_CRMF_CERTTEMPLATE_get0_issuer,
9 OSSL_CRMF_CERTTEMPLATE_get0_extensions,
10 OSSL_CRMF_CERTID_get0_serialNumber, OSSL_CRMF_CERTID_get0_issuer,
11 OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert, OSSL_CRMF_MSG_get_certReqId -
12 functions reading from CRMF CertReqMsg structures
13
15 #include <openssl/crmf.h>
16
17 OSSL_CRMF_CERTTEMPLATE *OSSL_CRMF_MSG_get0_tmpl(const OSSL_CRMF_MSG *crm);
18 const ASN1_INTEGER
19 *OSSL_CRMF_CERTTEMPLATE_get0_serialNumber(const OSSL_CRMF_CERTTEMPLATE *tmpl);
20 const X509_NAME
21 *OSSL_CRMF_CERTTEMPLATE_get0_subject(const OSSL_CRMF_CERTTEMPLATE *tmpl);
22 const X509_NAME
23 *OSSL_CRMF_CERTTEMPLATE_get0_issuer(const OSSL_CRMF_CERTTEMPLATE *tmpl);
24 X509_EXTENSIONS
25 *OSSL_CRMF_CERTTEMPLATE_get0_extensions(const OSSL_CRMF_CERTTEMPLATE *tmpl);
26
27 const ASN1_INTEGER
28 *OSSL_CRMF_CERTID_get0_serialNumber(const OSSL_CRMF_CERTID *cid);
29 const X509_NAME *OSSL_CRMF_CERTID_get0_issuer(const OSSL_CRMF_CERTID *cid);
30
31 X509
32 *OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert(const OSSL_CRMF_ENCRYPTEDVALUE *ecert,
33 OSSL_LIB_CTX *libctx, const char *propq,
34 EVP_PKEY *pkey);
35
36 int OSSL_CRMF_MSG_get_certReqId(const OSSL_CRMF_MSG *crm);
37
39 OSSL_CRMF_MSG_get0_tmpl() retrieves the certificate template of crm.
40
41 OSSL_CRMF_CERTTEMPLATE_get0_serialNumber() retrieves the serialNumber
42 of the given certificate template tmpl.
43
44 OSSL_CRMF_CERTTEMPLATE_get0_subject() retrieves the subject name of the
45 given certificate template tmpl.
46
47 OSSL_CRMF_CERTTEMPLATE_get0_issuer() retrieves the issuer name of the
48 given certificate template tmpl.
49
50 OSSL_CRMF_CERTTEMPLATE_get0_extensions() retrieves the X.509 extensions
51 of the given certificate template tmpl, or NULL if not present.
52
53 OSSL_CRMF_CERTID_get0_serialNumber retrieves the serialNumber of the
54 given CertId cid.
55
56 OSSL_CRMF_CERTID_get0_issuer retrieves the issuer name of the given
57 CertId cid, which must be of ASN.1 type GEN_DIRNAME.
58
59 OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() decrypts the certificate in the
60 given encryptedValue ecert, using the private key pkey, library context
61 libctx and property query string propq (see OSSL_LIB_CTX(3)). This is
62 needed for the indirect POPO method as in RFC 4210 section 5.2.8.2.
63 The function returns the decrypted certificate as a copy, leaving its
64 ownership with the caller, who is responsible for freeing it.
65
66 OSSL_CRMF_MSG_get_certReqId() retrieves the certReqId of crm.
67
69 OSSL_CRMF_MSG_get_certReqId() returns the certificate request ID as a
70 nonnegative integer or -1 on error.
71
72 All other functions return a pointer with the intended result or NULL
73 on error.
74
76 RFC 4211
77
79 The OpenSSL CRMF support was added in OpenSSL 3.0.
80
82 Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
83
84 Licensed under the Apache License 2.0 (the "License"). You may not use
85 this file except in compliance with the License. You can obtain a copy
86 in the file LICENSE in the source distribution or at
87 <https://www.openssl.org/source/license.html>.
88
89
90
913.1.1 2023-08-31 OSSL_CRMF_MSG_GET0_TMPL(3ossl)