OSSL_CRMF_MS...INFO_CERTREQ(3ossl)
π OSSL_CRMF_MS...INFO_CERTREQ(3ossl) β OpenSSL manual page for CRMF Registration Info π
okay bestie, welcome to the CRMF Registration Info corner of OpenSSL π
This page is your group chat for getting and setting regInfo on an OSSL_CRMF_MSG. The manual name is OSSL_CRMF_MS...INFO_CERTREQ(3ossl), and the actual function girlies are right below. let's get into it β¨
β¨ NAME β¨
OSSL_CRMF_MSG_get0_regInfo_utf8PairsOSSL_CRMF_MSG_set1_regInfo_utf8PairsOSSL_CRMF_MSG_get0_regInfo_certReqOSSL_CRMF_MSG_set1_regInfo_certReq
These are the functions getting or setting CRMF Registration Info. Periodt. π«Ά
π SYNOPSIS π
#include <openssl/crmf.h>
ASN1_UTF8STRING
*OSSL_CRMF_MSG_get0_regInfo_utf8Pairs(const OSSL_CRMF_MSG *msg);
int OSSL_CRMF_MSG_set1_regInfo_utf8Pairs(OSSL_CRMF_MSG *msg,
const ASN1_UTF8STRING *utf8pairs);
OSSL_CRMF_CERTREQUEST
*OSSL_CRMF_MSG_get0_regInfo_certReq(const OSSL_CRMF_MSG *msg);
int OSSL_CRMF_MSG_set1_regInfo_certReq(OSSL_CRMF_MSG *msg,
const OSSL_CRMF_CERTREQUEST *cr);
πΈ DESCRIPTION πΈ
OSSL_CRMF_MSG_get0_regInfo_utf8Pairs()β gives you back the firstutf8PairsregInfo inside the givenmsg, if present. peek, don't touch.OSSL_CRMF_MSG_set1_regInfo_utf8Pairs()β takes a copy of the givenutf8pairsvalue and adds it asutf8PairsregInfo to the givenmsg. SeeRFC 4211section7.1. copy that over, bestie.OSSL_CRMF_MSG_get0_regInfo_certReq()β gives you back the firstcertReqregInfo inside the givenmsg, if present.OSSL_CRMF_MSG_set1_regInfo_certReq()β takes a copy of the givencrvalue and adds it ascertReqregInfo to the givenmsg. SeeRFC 4211section7.2.
π¦ RETURN VALUES π¦
All the get0_*() functions return the respective pointer value, and NULL if it's not present. All the set1_*() functions return 1 on success and 0 on error. That's the whole vibe check: pointer or NULL, 1 or 0. no cap.
π NOTES π
Calling the set1_*() functions multiple times adds multiple instances of the respective control to the regInfo structure of the given msg. So yes, they stack β the setter keeps adding.
Important vibe check: RFC 4211 expects multipleutf8Pairsin oneregInfostructure, but it does not allow multiplecertReq. Read that twice, bestie. π«Ά
π§ SEE ALSO π§
RFC 4211 β go read the source, it's iconic. π«
π HISTORY π
The OpenSSL CRMF support was added in OpenSSL 3.0. So this whole CRMF situation has been around since OpenSSL 3.0, iykyk. π
π COPYRIGHT π
Copyright 2007-2021 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>.
Stay hydrated, keep your regInfo close, and remember this is the 3.5.6 edition dated 2026-04-07 of OSSL_CRMF_MS...INFO_CERTREQ(3ossl). Mwah πβ¨
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms