]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/OSSL_CRMF_MSG_set1_regCtrl_regToken.pod
Expand the XTS documentation
[thirdparty/openssl.git] / doc / man3 / OSSL_CRMF_MSG_set1_regCtrl_regToken.pod
CommitLineData
2a3b52ea
DO
1=pod
2
3=head1 NAME
4
5OSSL_CRMF_MSG_set1_regCtrl_regToken,
6OSSL_CRMF_MSG_set1_regCtrl_authenticator,
7OSSL_CRMF_MSG_PKIPublicationInfo_push0_SinglePubInfo,
8OSSL_CRMF_MSG_set0_SinglePubInfo,
9OSSL_CRMF_MSG_set_PKIPublicationInfo_action,
10OSSL_CRMF_MSG_set1_regCtrl_pkiPublicationInfo,
11OSSL_CRMF_MSG_set1_regCtrl_protocolEncrKey,
12OSSL_CRMF_MSG_set1_regCtrl_oldCertID,
13OSSL_CRMF_CERTID_gen
14- functions setting CRMF Registration Controls
15
16=head1 SYNOPSIS
17
18 #include <openssl/crmf.h>
19
20 int OSSL_CRMF_MSG_set1_regCtrl_regToken(OSSL_CRMF_MSG *msg,
21 const ASN1_UTF8STRING *tok);
22 int OSSL_CRMF_MSG_set1_regCtrl_authenticator(OSSL_CRMF_MSG *msg,
23 const ASN1_UTF8STRING *auth);
24 int OSSL_CRMF_MSG_PKIPublicationInfo_push0_SinglePubInfo(
25 OSSL_CRMF_PKIPUBLICATIONINFO *pi,
26 OSSL_CRMF_SINGLEPUBINFO *spi);
27 int OSSL_CRMF_MSG_set0_SinglePubInfo(OSSL_CRMF_SINGLEPUBINFO *spi,
28 int method, GENERAL_NAME *nm);
29 int OSSL_CRMF_MSG_set_PKIPublicationInfo_action(
30 OSSL_CRMF_PKIPUBLICATIONINFO *pi, int action);
31 int OSSL_CRMF_MSG_set1_regCtrl_pkiPublicationInfo(OSSL_CRMF_MSG *msg,
32 const OSSL_CRMF_PKIPUBLICATIONINFO *pi);
33 int OSSL_CRMF_MSG_set1_regCtrl_protocolEncrKey(OSSL_CRMF_MSG *msg,
34 const X509_PUBKEY *pubkey);
35 int OSSL_CRMF_MSG_set1_regCtrl_oldCertID(OSSL_CRMF_MSG *msg,
36 const OSSL_CRMF_CERTID *cid);
37 OSSL_CRMF_CERTID *OSSL_CRMF_CERTID_gen(const X509_NAME *issuer,
38 const ASN1_INTEGER *serial);
39
40=head1 DESCRIPTION
41
42OSSL_CRMF_MSG_set1_regCtrl_regToken() sets the regToken control in the given
43B<msg> copying the given B<tok> as value. See RFC 4211, section 6.1.
44
45OSSL_CRMF_MSG_set1_regCtrl_authenticator() sets the authenticator control in
46the given B<msg> copying the given B<auth> as value. See RFC 4211, section 6.2.
47
48OSSL_CRMF_MSG_PKIPublicationInfo_push0_SinglePubInfo() pushes the given B<spi>
49to B<si>. Consumes the B<spi> pointer.
50
a61b7f2f
DO
51OSSL_CRMF_MSG_set0_SinglePubInfo() sets in the given SinglePubInfo B<spi>
52the B<method> and publication location, in the form of a GeneralName, B<nm>.
53The publication location is optional, and therefore B<nm> may be NULL.
54The function consumes the B<nm> pointer if present.
2a3b52ea
DO
55Available methods are:
56 # define OSSL_CRMF_PUB_METHOD_DONTCARE 0
57 # define OSSL_CRMF_PUB_METHOD_X500 1
58 # define OSSL_CRMF_PUB_METHOD_WEB 2
59 # define OSSL_CRMF_PUB_METHOD_LDAP 3
60
61OSSL_CRMF_MSG_set_PKIPublicationInfo_action() sets the action in the given B<pi>
62using the given B<action> as value. See RFC 4211, section 6.3.
63Available actions are:
64 # define OSSL_CRMF_PUB_ACTION_DONTPUBLISH 0
65 # define OSSL_CRMF_PUB_ACTION_PLEASEPUBLISH 1
66
a61b7f2f 67OSSL_CRMF_MSG_set1_regCtrl_pkiPublicationInfo() sets the pkiPublicationInfo
2a3b52ea
DO
68control in the given B<msg> copying the given B<tok> as value. See RFC 4211,
69section 6.3.
70
71OSSL_CRMF_MSG_set1_regCtrl_protocolEncrKey() sets the protocolEncrKey control in
7960dbec 72the given B<msg> copying the given B<pubkey> as value. See RFC 4211 section 6.6.
2a3b52ea
DO
73
74OSSL_CRMF_MSG_set1_regCtrl_oldCertID() sets the oldCertID control in the given
75B<msg> copying the given B<cid> as value. See RFC 4211, section 6.5.
76
77OSSL_CRMF_CERTID_gen produces an OSSL_CRMF_CERTID_gen structure copying the
78given B<issuer> name and B<serial> number.
79
80=head1 RETURN VALUES
81
82OSSL_CRMF_CERTID_gen returns a pointer to the resulting structure
83or NULL on error.
84
85All other functions return 1 on success, 0 on error.
86
87=head1 NOTES
88
89A function OSSL_CRMF_MSG_set1_regCtrl_pkiArchiveOptions() for setting an
90Archive Options Control is not yet implemented due to missing features to
91create the needed OSSL_CRMF_PKIARCHIVEOPTINS content.
92
93=head1 SEE ALSO
94
95RFC 4211
96
7960dbec
DDO
97=head1 HISTORY
98
99The OpenSSL CRMF support was added in OpenSSL 3.0.
100
2a3b52ea
DO
101=head1 COPYRIGHT
102
8869ad4a 103Copyright 2007-2019 The OpenSSL Project Authors. All Rights Reserved.
2a3b52ea 104
ce9b9964 105Licensed under the Apache License 2.0 (the "License"). You may not use
2a3b52ea
DO
106this file except in compliance with the License. You can obtain a copy
107in the file LICENSE in the source distribution or at
108L<https://www.openssl.org/source/license.html>.
109
110=cut