OSSL_CRMF_MS...INFO_CERTREQ(3ossl)
β¨ NAME β¨
okay so this page is all about the OSSL_CRMF_MSG_get0_regInfo_utf8Pairs, OSSL_CRMF_MSG_set1_regInfo_utf8Pairs, OSSL_CRMF_MSG_get0_regInfo_certReq, and OSSL_CRMF_MSG_set1_regInfo_certReq girlies β they're the functions that get or set the CRMF Registration Info π
(and yes bestie, this is an OpenSSL 3ossl manual page, we're in the big leagues now π)
πΈ 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 π¦
okay so like, four functions, two vibes β getters and setters, and they're all about regInfo π
OSSL_CRMF_MSG_get0_regInfo_utf8Pairs()β hands you back the first utf8PairsregInfoinside the given msg, if it's even there. no copy, no drama, just the pointer, iykyk π«ΆOSSL_CRMF_MSG_set1_regInfo_utf8Pairs()β takes a copy of the utf8pairs value you pass in and adds it as a utf8PairsregInfoto msg. it's giving "duplicate and file it" energy β¨ see RFC 4211 section 7.1 for the receipts πOSSL_CRMF_MSG_get0_regInfo_certReq()β returns the first certReqregInfoin the given msg, if present. same deal as above, just the certReq flavor πOSSL_CRMF_MSG_set1_regInfo_certReq()β adds a copy of the given cr value as a certReqregInfoto msg. see RFC 4211 section 7.2 π
π RETURN VALUES π
- all the
get0_*()girlies return the respective pointer value β andNULLif it's not present π (no value, no problem, no pointer) - all the
set1_*()functions return1on success and0on error. that's it, that's the vibe check π
π NOTES π
β οΈ okay listen up bestie, this part matters β οΈ
if you call the set1_*() functions multiple times, you get multiple instances of the respective control piled into the regInfo structure of the given msg. so like, it stacks. π«
and here's the tea β β RFC 4211 expects multiple utf8Pairs in one regInfo structure (so stacking those is fine, iconic even π
), but it does not allow multiple certReq. so don't be out here adding certReq over and over, fr fr π
π₯ SEE ALSO π₯
- RFC 4211 π
β HISTORY β
the OpenSSL CRMF support showed up in OpenSSL 3.0 β a whole era, honestly πβ¨
π 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>.
okay that's the whole page, bestie, slay π§ββοΈ this was version 3.5.0, dated 2026-09-25, and brought to you by the OSSL_CRMF_MS...INFO_CERTREQ(3ossl) manual β go forth and register your info responsibly ππΈ
π¦ 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