1OSSL_CRMF_MSG_SET1_REGINFO_CERTREQ(3oOspOseSlnS)SLS_LCRMF_MSG_SET1_REGINFO_CERTREQ(3ossl)
2
3
4

NAME

6       OSSL_CRMF_MSG_get0_regInfo_utf8Pairs,
7       OSSL_CRMF_MSG_set1_regInfo_utf8Pairs,
8       OSSL_CRMF_MSG_get0_regInfo_certReq, OSSL_CRMF_MSG_set1_regInfo_certReq
9       - functions getting or setting CRMF Registration Info
10

SYNOPSIS

12        #include <openssl/crmf.h>
13
14        ASN1_UTF8STRING
15            *OSSL_CRMF_MSG_get0_regInfo_utf8Pairs(const OSSL_CRMF_MSG *msg);
16        int OSSL_CRMF_MSG_set1_regInfo_utf8Pairs(OSSL_CRMF_MSG *msg,
17                                                 const ASN1_UTF8STRING *utf8pairs);
18        OSSL_CRMF_CERTREQUEST
19            *OSSL_CRMF_MSG_get0_regInfo_certReq(const OSSL_CRMF_MSG *msg);
20        int OSSL_CRMF_MSG_set1_regInfo_certReq(OSSL_CRMF_MSG *msg,
21                                               const OSSL_CRMF_CERTREQUEST *cr);
22

DESCRIPTION

24       OSSL_CRMF_MSG_get0_regInfo_utf8Pairs() returns the first utf8Pairs
25       regInfo in the given msg, if present.
26
27       OSSL_CRMF_MSG_set1_regInfo_utf8Pairs() adds a copy of the given
28       utf8pairs value as utf8Pairs regInfo to the given msg. See RFC 4211
29       section 7.1.
30
31       OSSL_CRMF_MSG_get0_regInfo_certReq() returns the first certReq regInfo
32       in the given msg, if present.
33
34       OSSL_CRMF_MSG_set1_regInfo_certReq() adds a copy of the given cr value
35       as certReq regInfo to the given msg. See RFC 4211 section 7.2.
36

RETURN VALUES

38       All get0_*() functions return the respective pointer value, NULL if not
39       present.
40
41       All set1_*() functions return 1 on success, 0 on error.
42

NOTES

44       Calling the set1_*() functions multiple times adds multiple instances
45       of the respective control to the regInfo structure of the given msg.
46       While RFC 4211 expects multiple utf8Pairs in one regInfo structure, it
47       does not allow multiple certReq.
48

SEE ALSO

50       RFC 4211
51

HISTORY

53       The OpenSSL CRMF support was added in OpenSSL 3.0.
54
56       Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
57
58       Licensed under the Apache License 2.0 (the "License").  You may not use
59       this file except in compliance with the License.  You can obtain a copy
60       in the file LICENSE in the source distribution or at
61       <https://www.openssl.org/source/license.html>.
62
63
64
653.1.1                             2023O-S0S8L-_3C1RMF_MSG_SET1_REGINFO_CERTREQ(3ossl)
Impressum