]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/OSSL_CRMF_MSG_set1_regCtrl_regToken.pod
Use in CMP+CRMF libctx and propq param added to sign/verify/HMAC/decrypt
[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
6d1f50b5 43I<msg> copying the given I<tok> as value. See RFC 4211, section 6.1.
2a3b52ea
DO
44
45OSSL_CRMF_MSG_set1_regCtrl_authenticator() sets the authenticator control in
6d1f50b5 46the given I<msg> copying the given I<auth> as value. See RFC 4211, section 6.2.
2a3b52ea 47
6d1f50b5
DDO
48OSSL_CRMF_MSG_PKIPublicationInfo_push0_SinglePubInfo() pushes the given I<spi>
49to I<si>. Consumes the I<spi> pointer.
2a3b52ea 50
6d1f50b5
DDO
51OSSL_CRMF_MSG_set0_SinglePubInfo() sets in the given SinglePubInfo I<spi>
52the I<method> and publication location, in the form of a GeneralName, I<nm>.
53The publication location is optional, and therefore I<nm> may be NULL.
54The function consumes the I<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
6d1f50b5
DDO
61OSSL_CRMF_MSG_set_PKIPublicationInfo_action() sets the action in the given I<pi>
62using the given I<action> as value. See RFC 4211, section 6.3.
2a3b52ea
DO
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
6d1f50b5 68control in the given I<msg> copying the given I<tok> as value. See RFC 4211,
2a3b52ea
DO
69section 6.3.
70
71OSSL_CRMF_MSG_set1_regCtrl_protocolEncrKey() sets the protocolEncrKey control in
6d1f50b5 72the given I<msg> copying the given I<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
6d1f50b5 75I<msg> copying the given I<cid> as value. See RFC 4211, section 6.5.
2a3b52ea
DO
76
77OSSL_CRMF_CERTID_gen produces an OSSL_CRMF_CERTID_gen structure copying the
6d1f50b5 78given I<issuer> name and I<serial> number.
2a3b52ea
DO
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