5 OSSL_CMP_STATUSINFO_new,
6 OSSL_CMP_snprint_PKIStatusInfo,
7 OSSL_CMP_CTX_snprint_PKIStatus
8 - function(s) for managing the CMP PKIStatus
12 #include <openssl/cmp.h>
14 OSSL_CMP_PKISI *OSSL_CMP_STATUSINFO_new(int status, int fail_info,
16 char *OSSL_CMP_snprint_PKIStatusInfo(const OSSL_CMP_PKISI *statusInfo,
17 char *buf, size_t bufsize);
18 char *OSSL_CMP_CTX_snprint_PKIStatus(const OSSL_CMP_CTX *ctx, char *buf,
23 This is the PKIStatus API for using CMP (Certificate Management Protocol) with
26 OSSL_CMP_STATUSINFO_new() creates a new PKIStatusInfo structure
27 and fills in the given values.
28 It sets the status field to I<status>,
29 copies I<text> (unless it is NULL) to statusString,
30 and interprets I<fail_info> as bit pattern for the failInfo field.
32 OSSL_CMP_snprint_PKIStatusInfo() places a human-readable string
33 representing the given statusInfo
34 in the given buffer, with the given maximal length.
36 OSSL_CMP_CTX_snprint_PKIStatus() places a human-readable string
37 representing the PKIStatusInfo components of the CMP context I<ctx>
38 in the given buffer, with the given maximal length.
42 CMP is defined in RFC 4210 (and CRMF in RFC 4211).
46 OSSL_CMP_STATUSINFO_new()
47 returns a pointer to the structure on success, or NULL on error.
49 OSSL_CMP_snprint_PKIStatusInfo() and
50 OSSL_CMP_CTX_snprint_PKIStatus()
51 return a copy of the buffer pointer containing the string or NULL on error.
55 The OpenSSL CMP support was added in OpenSSL 3.0.
59 Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
61 Licensed under the Apache License 2.0 (the "License"). You may not use
62 this file except in compliance with the License. You can obtain a copy
63 in the file LICENSE in the source distribution or at
64 L<https://www.openssl.org/source/license.html>.