OSSL_CMP_STATUSINFO_NEW(3SSL)
π OSSL_CMP_STATUSINFO_NEW π
okay bestie, so this is the OpenSSL manual page for OSSL_CMP_STATUSINFO_NEW(3SSL) β like, manual name 3SSL, OpenSSL's own little corner of the docs. it's all about managing the CMP PKIStatus. CMP = Certificate Management Protocol, and yes we're getting into it. π
β¨ NAME β¨
OSSL_CMP_STATUSINFO_new, OSSL_CMP_snprint_PKIStatusInfo, OSSL_CMP_CTX_snprint_PKIStatus β the function(s) for managing the CMP PKIStatus, fr fr. π
πΈ SYNOPSIS πΈ
#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);
like, just #include <openssl/cmp.h> and you're in. no cap. β¨
π¦ DESCRIPTION π¦
so this is the PKIStatus API for using CMP (Certificate Management Protocol) with OpenSSL. main character energy, honestly. π
OSSL_CMP_STATUSINFO_new()β creates a newPKIStatusInfostructure and fills in the values you give it. literally. it sets thestatusfield to status, copies text over tostatusString(unless it'sNULL, then it just skips that part), and interprets fail_info as a bit pattern for thefailInfofield. cute.OSSL_CMP_snprint_PKIStatusInfo()β takes the statusInfo you hand it and places a human-readable string representing it into the given buffer, with the given maximal length. it's giving "make it readable for the girlies". πOSSL_CMP_CTX_snprint_PKIStatus()β same deal but for thePKIStatusInfocomponents of the CMP context ctx. drops a human-readable string into the given buffer, with the given maximal length. iconic.
π NOTES π
CMP is defined in RFC 9810. that's the whole note. periodt. π
π«Ά RETURN VALUES π«Ά
OSSL_CMP_STATUSINFO_new()β returns a pointer to the structure on success. on error?NULL. πOSSL_CMP_snprint_PKIStatusInfo()andOSSL_CMP_CTX_snprint_PKIStatus()β return a copy of the buffer pointer that contains the string. orNULLon error, bestie. π
π HISTORY π
the OpenSSL CMP support was added in OpenSSL 3.0. so it's been here a minute, but not forever. β
π 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!! π₯° this was OpenSSL version 4.0.3, dated 2026-09-29 β go read your PKIStatusInfo and slay. π¦πβ¨
π¦ 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