]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/internal/man3/ossl_cmp_sk_X509_add1_cert.pod
Update copyright year
[thirdparty/openssl.git] / doc / internal / man3 / ossl_cmp_sk_X509_add1_cert.pod
CommitLineData
7960dbec
DDO
1=pod
2
3=head1 NAME
4
5ossl_cmp_sk_X509_add1_cert,
6ossl_cmp_sk_X509_add1_certs,
7ossl_cmp_X509_STORE_add1_certs,
8ossl_cmp_X509_STORE_get1_certs
9- functions manipulating lists of certificates
10
11=head1 SYNOPSIS
12
13 #include <openssl/cmp_util.h>
14
15 int ossl_cmp_sk_X509_add1_cert(STACK_OF(X509) *sk, X509 *cert,
16 int no_dup, int prepend);
17 int ossl_cmp_sk_X509_add1_certs(STACK_OF(X509) *sk, STACK_OF(X509) *certs,
235595c4 18 int no_self_issued, int no_dups, int prepend);
7960dbec 19 int ossl_cmp_X509_STORE_add1_certs(X509_STORE *store, STACK_OF(X509) *certs,
235595c4 20 int only_self_issued);
7960dbec
DDO
21 STACK_OF(X509) *ossl_cmp_X509_STORE_get1_certs(X509_STORE *store);
22
23=head1 DESCRIPTION
24
dfabee82 25ossl_cmp_sk_X509_add1_cert() appends or prepends (depending on the I<prepend>
7960dbec
DDO
26argument) a certificate to the given list,
27optionally only if it is not already contained.
28On success the reference count of the certificate is increased.
29
dfabee82 30ossl_cmp_sk_X509_add1_certs() appends or prepends (depending on the I<prepend>
7960dbec 31argument) a list of certificates to the given list,
235595c4 32optionally only if not self-issued and optionally only if not already contained.
7960dbec
DDO
33The reference counts of those certificates appended successfully are increased.
34
235595c4 35ossl_cmp_X509_STORE_add1_certs() adds all or only self-issued certificates from
dfabee82 36the given stack to given store. The I<certs> parameter may be NULL.
7960dbec
DDO
37
38ossl_cmp_X509_STORE_get1_certs() retrieves a copy of all certificates in the
39given store.
40
41=head1 RETURN VALUES
42
43ossl_cmp_X509_STORE_get1_certs() returns a list of certificates, NULL on error.
44
45All other functions return 1 on success, 0 on error.
46
47=head1 HISTORY
48
49The OpenSSL CMP support was added in OpenSSL 3.0.
50
51=head1 COPYRIGHT
52
33388b44 53Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved.
7960dbec
DDO
54
55Licensed under the Apache License 2.0 (the "License"). You may not use
56this file except in compliance with the License. You can obtain a copy
57in the file LICENSE in the source distribution or at
58L<https://www.openssl.org/source/license.html>.
59
60=cut