5 ossl_cmp_ctx_set1_caPubs,
6 ossl_cmp_ctx_set0_validatedSrvCert,
7 ossl_cmp_ctx_set_status,
8 ossl_cmp_ctx_set0_statusString,
9 ossl_cmp_ctx_set_failInfoCode,
10 ossl_cmp_ctx_set0_newCert,
11 ossl_cmp_ctx_set1_extraCertsIn,
12 ossl_cmp_ctx_set1_recipNonce
13 - internal functions for managing the CMP client context datastructure
17 #include <openssl/cmp.h>
19 int ossl_cmp_ctx_set1_caPubs(OSSL_CMP_CTX *ctx, STACK_OF(X509) *caPubs);
20 int ossl_cmp_ctx_set0_validatedSrvCert(OSSL_CMP_CTX *ctx, X509 *cert);
21 int ossl_cmp_ctx_set_status(OSSL_CMP_CTX *ctx, int status);
22 int ossl_cmp_ctx_set0_statusString(OSSL_CMP_CTX *ctx,
23 OSSL_CMP_PKIFREETEXT *text);
24 int ossl_cmp_ctx_set_failInfoCode(OSSL_CMP_CTX *ctx, int fail_info);
25 int ossl_cmp_ctx_set0_newCert(OSSL_CMP_CTX *ctx, X509 *cert);
26 int ossl_cmp_ctx_set1_extraCertsIn(OSSL_CMP_CTX *ctx,
27 STACK_OF(X509) *extraCertsIn);
28 int ossl_cmp_ctx_set1_recipNonce(OSSL_CMP_CTX *ctx,
29 const ASN1_OCTET_STRING *nonce);
33 ossl_cmp_ctx_set1_caPubs() copies the given stack of CA certificates
34 to the caPubs field of the context.
35 The reference counts of those certificates handled successfully are increased.
37 ossl_cmp_ctx_set0_validatedSrvCert() sets the validatedSrvCert of the context,
38 which caches any already validated server cert, or NULL if not available.
40 ossl_cmp_ctx_set_status() sets the status field of the context.
42 ossl_cmp_ctx_set0_statusString() sets the statusString field of the context.
44 ossl_cmp_ctx_set_failInfoCode() sets the error code bits in the failInfoCode
45 field of the context based on the given OSSL_CMP_PKIFAILUREINFO structure.
47 ossl_cmp_ctx_set0_newCert() sets the given (newly enrolled) certificate
50 ossl_cmp_ctx_set1_extraCertsIn() sets the extraCertsIn field of the context.
51 The reference counts of those certificates handled successfully are increased.
53 ossl_cmp_ctx_set1_recipNonce() sets the given recipient nonce in the context.
57 CMP is defined in RFC 4210 (and CRMF in RFC 4211).
61 All functions return 1 on success, 0 on error.
65 The OpenSSL CMP support was added in OpenSSL 3.0.
69 Copyright 2007-2018 The OpenSSL Project Authors. All Rights Reserved.
71 Licensed under the Apache License 2.0 (the "License"). You may not use
72 this file except in compliance with the License. You can obtain a copy
73 in the file LICENSE in the source distribution or at
74 L<https://www.openssl.org/source/license.html>.