OSSL_CRMF_MSG...GINFO_CERTREQ(3SSL)
π OSSL_CRMF_MSG_get0_regInfo_utf8Pairs, OSSL_CRMF_MSG_set1_regInfo_utf8Pairs, OSSL_CRMF_MSG_get0_regInfo_certReq, OSSL_CRMF_MSG_set1_regInfo_certReq β NAME β¨
okay bestie so this is the OSSL_CRMF_MSG...GINFO_CERTREQ page from the OpenSSL manual (section 3SSL, we love a library page πΈ), and it's literally all about the functions that get or set the CRMF Registration Info. yes we're doing certificate request message format today, get into it π
π 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 π¦
so there's four functions and they're basically two little duos, and they GO together like this:
OSSL_CRMF_MSG_get0_regInfo_utf8Pairs()β hands you back the firstutf8PairsregInfo chillin' inside the givenmsg, if it's even there πOSSL_CRMF_MSG_set1_regInfo_utf8Pairs()β drops a copy of theutf8pairsvalue you gave it into the givenmsgas autf8PairsregInfo. and like, go read RFC 4211 section 7.1 for the lore, iykyk πOSSL_CRMF_MSG_get0_regInfo_certReq()β same energy, different field: gives you the firstcertReqregInfo in the givenmsg, if present π«OSSL_CRMF_MSG_set1_regInfo_certReq()β sticks a copy of yourcrvalue in as acertReqregInfo on the givenmsg. RFC 4211 section 7.2 is where the deets live, periodt β¨
π RETURN VALUES π
- All the
get0_*()functions return the respective pointer value, andNULLif it's not present. no notes, that's the whole vibe π«Ά - All the
set1_*()functions return1on success,0on error. classic. iconic. we respect it π
π₯ NOTES π₯
okay this is the part where you listen, bestie:
If you call theset1_*()functions multiple times, you get multiple instances of the respective control added into the regInfo structure of the givenmsg. so it just keeps stacking, like my unread notifications π
and the plot twist: RFC 4211 actually expects multiple utf8Pairs inside one regInfo structure, which is fine and cute and encouraged. BUT it does **not allow multiple certReq. so like, don't do that one. fr fr. that's the rule π₯
π SEE ALSO π
π HISTORY π
The whole OpenSSL CRMF support situation walked in the door in OpenSSL 3.0. a glow-up era truly π
π 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, no cap π§π this was OpenSSL 4.0.3, dated 2026-09-2, and honestly? she ate. go forth and manage your regInfo responsibly ππΈ
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms