OSSL_CMP_STATUSINFO_NEW(3ossl)
π
OSSL_CMP_STATUSINFO_NEW β the tea on 3ossl
ok so bestie, welcome to the CMP PKIStatus page π this one lives in section 3ossl of the OpenSSL manual, and it's literally all about creating and pretty-printing the CMP PKIStatus. let's get into it π
β¨ 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, that's the whole cast of characters right there π three functions, one header, no cap.
πΈ DESCRIPTION πΈ
so this is the PKIStatus API for using CMP (Certificate Management Protocol) with OpenSSL. yes queen, CMP in OpenSSL, we love to see it π¦
Here's what each function is giving:
OSSL_CMP_STATUSINFO_new()β creates a brand new PKIStatusInfo structure and fills in the given values. It sets the status field to status, copies text (unless it isNULL) tostatusString, and interprets fail_info as a bit pattern for thefailInfofield. like it's doing the absolute most and we stan π«ΆOSSL_CMP_snprint_PKIStatusInfo()β places a human-readable string representing the given statusInfo in the given buffer, with the given maximal length. it's giving "make it readable for the girlies" energy β¨OSSL_CMP_CTX_snprint_PKIStatus()β places a human-readable string representing the PKIStatusInfo components of the CMP context ctx in the given buffer, with the given maximal length. same vibe, but pulling from the whole context instead of just one struct π
β NOTES β
CMP is defined in RFC 4210 (and CRMF in RFC 4211). iykyk π
π₯ RETURN VALUES π₯
OSSL_CMP_STATUSINFO_new()returns a pointer to the structure on success, orNULLon error. so like, if you getNULLbestie, something went wrong πOSSL_CMP_snprint_PKIStatusInfo()andOSSL_CMP_CTX_snprint_PKIStatus()return a copy of the buffer pointer containing the string orNULLon error. same deal βNULLmeans error, don't ignore it π
π°οΈ HISTORY π°οΈ
The OpenSSL CMP support was added in OpenSSL 3.0. so it's a 3.0 baby, born iconic π
π 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 do anything spicy with this, bestie β "not in compliance with the License" is not the vibe we're going for π
ok that's the whole page π mwah, go forth and print your PKIStatuses pretty β¨
sign-off szn: this tea was served up from the OpenSSL manual, version 3.5.0, dated 2026-09-25, and the page itself goes by OSSL_CMP_STATUSINFO_NEW(3ossl) β catch you on the next one, bestie ππ¦πΈ
π¦ 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