OSSL_CMP_STATUSINFO_NEW(3ossl)
π
OSSL_CMP_STATUSINFO_NEW β the 3ossl manual, bestie edition β¨
okay so this is the page for OSSL_CMP_STATUSINFO_NEW(3ossl), and yes the manual name is 3ossl, that's just how OpenSSL rolls. it's all about managing the CMP PKIStatus and honestly? kind of iconic. let's get into it π
πΈ NAME πΈ
OSSL_CMP_STATUSINFO_new, OSSL_CMP_snprint_PKIStatusInfo, OSSL_CMP_CTX_snprint_PKIStatus β the function(s) for managing the CMP PKIStatus. that's the whole vibe. π«Ά
β¨ SYNOPSIS β¨
like, here's the receipts, literally exactly this:
#include <openssl/cmp.h>
OSSL_CMP_PKISI *OSSL_CMP_STATUSINFO_new(int status, int fail_info,
const char *text);
char *OSSL_CMP_snprint_PKIStatusInfo(const OSSL_CMP_PKISI *statusInfo,
char *buf, size_t bufsize);
char *OSSL_CMP_CTX_snprint_PKIStatus(const OSSL_CMP_CTX *ctx, char *buf,
size_t bufsize);
π¦ DESCRIPTION π¦
so this is the PKIStatus API for using CMP (that's the Certificate Management Protocol, iykyk) with OpenSSL. we love a protocol moment. π
OSSL_CMP_STATUSINFO_new()β creates a newPKIStatusInfostructure and fills in the given values. it sets thestatusfield to status, copies text (unless it'sNULL) tostatusString, and interprets fail_info as a bit pattern for thefailInfofield. slay, all the fields handled. π₯OSSL_CMP_snprint_PKIStatusInfo()β places a human-readable string representing the given statusInfo in the given buffer, with the given maximal length. cute string, in your buffer, done. πOSSL_CMP_CTX_snprint_PKIStatus()β places a human-readable string representing thePKIStatusInfocomponents of the CMP context ctx in the given buffer, with the given maximal length. same energy, but pulling from the context. β¨
β NOTES β
CMP is defined in RFC 9810. periodt. π
π RETURN VALUES π
OSSL_CMP_STATUSINFO_new()returns a pointer to the structure on success, orNULLon error. bestie either gets the pointer or gets nothing, no in-between. πOSSL_CMP_snprint_PKIStatusInfo()andOSSL_CMP_CTX_snprint_PKIStatus()return a copy of the buffer pointer containing the string, orNULLon error. buffer pointer copy orNULL, that's the deal. π
π HISTORY π
the OpenSSL CMP support was added in OpenSSL 3.0. so it's been here, living its main character era since 3.0. π
π 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>.
fr fr read the license before you go copying stuff, that's the whole point of the paragraph above π
and that's the page!! source/version is 3.5.6 and the date on it is 2026-04-07, so like, shoutout to that timestamp β bye bestie, go snapshot some PKIStatus ππ¦β¨
π¦ 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