OSSL_CRMF_MS...CTRL_REGTOKEN(3ossl)
πΈ NAME πΈ
Manual name: OSSL_CRMF_MS...CTRL_REGTOKEN(3ossl). Bestie, this is the OpenSSL page for the functions getting or setting CRMF Registration Controls, and honestly? Itβs giving βniche but importantβ β¨. The whole squad is:
OSSL_CRMF_MSG_get0_regCtrl_regTokenOSSL_CRMF_MSG_set1_regCtrl_regTokenOSSL_CRMF_MSG_get0_regCtrl_authenticatorOSSL_CRMF_MSG_set1_regCtrl_authenticatorOSSL_CRMF_MSG_PKIPublicationInfo_push0_SinglePubInfoOSSL_CRMF_MSG_set0_SinglePubInfoOSSL_CRMF_MSG_set_PKIPublicationInfo_actionOSSL_CRMF_MSG_get0_regCtrl_pkiPublicationInfoOSSL_CRMF_MSG_set1_regCtrl_pkiPublicationInfoOSSL_CRMF_MSG_get0_regCtrl_protocolEncrKeyOSSL_CRMF_MSG_set1_regCtrl_protocolEncrKeyOSSL_CRMF_MSG_get0_regCtrl_oldCertIDOSSL_CRMF_MSG_set1_regCtrl_oldCertIDOSSL_CRMF_CERTID_gen
β¨ SYNOPSIS β¨
#include <openssl/crmf.h>
ASN1_UTF8STRING
*OSSL_CRMF_MSG_get0_regCtrl_regToken(const OSSL_CRMF_MSG *msg);
int OSSL_CRMF_MSG_set1_regCtrl_regToken(OSSL_CRMF_MSG *msg,
const ASN1_UTF8STRING *tok);
ASN1_UTF8STRING
*OSSL_CRMF_MSG_get0_regCtrl_authenticator(const OSSL_CRMF_MSG *msg);
int OSSL_CRMF_MSG_set1_regCtrl_authenticator(OSSL_CRMF_MSG *msg,
const ASN1_UTF8STRING *auth);
int OSSL_CRMF_MSG_PKIPublicationInfo_push0_SinglePubInfo(
OSSL_CRMF_PKIPUBLICATIONINFO *pi,
OSSL_CRMF_SINGLEPUBINFO *spi);
int OSSL_CRMF_MSG_set0_SinglePubInfo(OSSL_CRMF_SINGLEPUBINFO *spi,
int method, GENERAL_NAME *nm);
int OSSL_CRMF_MSG_set_PKIPublicationInfo_action(
OSSL_CRMF_PKIPUBLICATIONINFO *pi, int action);
OSSL_CRMF_PKIPUBLICATIONINFO
*OSSL_CRMF_MSG_get0_regCtrl_pkiPublicationInfo(const OSSL_CRMF_MSG *msg);
int OSSL_CRMF_MSG_set1_regCtrl_pkiPublicationInfo(OSSL_CRMF_MSG *msg,
const OSSL_CRMF_PKIPUBLICATIONINFO *pi);
X509_PUBKEY
*OSSL_CRMF_MSG_get0_regCtrl_protocolEncrKey(const OSSL_CRMF_MSG *msg);
int OSSL_CRMF_MSG_set1_regCtrl_protocolEncrKey(OSSL_CRMF_MSG *msg,
const X509_PUBKEY *pubkey);
OSSL_CRMF_CERTID
*OSSL_CRMF_MSG_get0_regCtrl_oldCertID(const OSSL_CRMF_MSG *msg);
int OSSL_CRMF_MSG_set1_regCtrl_oldCertID(OSSL_CRMF_MSG *msg,
const OSSL_CRMF_CERTID *cid);
OSSL_CRMF_CERTID *OSSL_CRMF_CERTID_gen(const X509_NAME *issuer,
const ASN1_INTEGER *serial);
π¦ DESCRIPTION π¦
Okay so every OSSL_CRMF_MSG_get0_regCtrl_X() function hands back the matching control X from msg, but only if itβs actually present. π
OSSL_CRMF_MSG_set1_regCtrl_regToken()β sets theregTokencontrol inmsg, copying the giventokas the value. See RFC 4211, section 6.1. πOSSL_CRMF_MSG_set1_regCtrl_authenticator()β sets theauthenticatorcontrol inmsg, copying the givenauthas the value. See RFC 4211, section 6.2. πOSSL_CRMF_MSG_PKIPublicationInfo_push0_SinglePubInfo()β pushes the givenspitosi. Consumes thespipointer. πOSSL_CRMF_MSG_set0_SinglePubInfo()β sets in the givenSinglePubInfospithemethodand publication location, in the form of aGeneralName,nm. The publication location is optional, and thereforenmmay beNULL. The function consumes thenmpointer if present. Available methods are:
# define OSSL_CRMF_PUB_METHOD_DONTCARE 0
# define OSSL_CRMF_PUB_METHOD_X500 1
# define OSSL_CRMF_PUB_METHOD_WEB 2
# define OSSL_CRMF_PUB_METHOD_LDAP 3
OSSL_CRMF_MSG_set_PKIPublicationInfo_action()β sets theactionin the givenpiusing the givenactionas the value. See RFC 4211, section 6.3. Available actions are:
# define OSSL_CRMF_PUB_ACTION_DONTPUBLISH 0
# define OSSL_CRMF_PUB_ACTION_PLEASEPUBLISH 1
OSSL_CRMF_MSG_set1_regCtrl_pkiPublicationInfo()β sets thepkiPublicationInfocontrol in the givenmsg, copying the giventokas the value. See RFC 4211, section 6.3. π«ΆOSSL_CRMF_MSG_set1_regCtrl_protocolEncrKey()β sets theprotocolEncrKeycontrol in the givenmsg, copying the givenpubkeyas the value. See RFC 4211 section 6.6. πOSSL_CRMF_MSG_set1_regCtrl_oldCertID()β sets theoldCertIDregTokencontrol in the givenmsg, copying the givencidas the value. See RFC 4211, section 6.5. π§OSSL_CRMF_CERTID_gen()β produces anOSSL_CRMF_CERTID_genstructure copying the given issuer name and serial number. π
π RETURN VALUES π
- All
OSSL_CRMF_MSG_get0_*()functions return the respective pointer value orNULLif not present and on error. - All
OSSL_CRMF_MSG_set1_*()functions return1on success,0on error. OSSL_CRMF_CERTID_gen()returns a pointer to the resulting structure orNULLon error.
π NOTES π
A function OSSL_CRMF_MSG_set1_regCtrl_pkiArchiveOptions() for setting an Archive Options Control is not yet implemented due to missing features to create the needed OSSL_CRMF_PKIARCHIVEOPTINS content. π Not me waiting for that one to drop.
π SEE ALSO π
β HISTORY β
The OpenSSL CRMF support was added in OpenSSL 3.0. π
π COPYRIGHT π
Copyright 2007-2022 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
β¨ Sign-off: source/version 3.5.0, date 2026-09-2. Stay iconic, bestie β now go set those Registration Controls π
ππ«Ά
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms