mirror of
https://github.com/openssl/openssl.git
synced 2024-12-27 06:21:43 +08:00
60 lines
1.6 KiB
Plaintext
60 lines
1.6 KiB
Plaintext
|
=pod
|
||
|
|
||
|
=head1 NAME
|
||
|
|
||
|
OSSL_CMP_ITAV_new_caCerts,
|
||
|
OSSL_CMP_ITAV_get0_caCerts
|
||
|
- CMP utility functions for handling specific genm and genp messages
|
||
|
|
||
|
=head1 SYNOPSIS
|
||
|
|
||
|
#include <openssl/cmp.h>
|
||
|
|
||
|
OSSL_CMP_ITAV *OSSL_CMP_ITAV_new_caCerts(const STACK_OF(X509) *caCerts);
|
||
|
int OSSL_CMP_ITAV_get0_caCerts(const OSSL_CMP_ITAV *itav, STACK_OF(X509) **out);
|
||
|
|
||
|
=head1 DESCRIPTION
|
||
|
|
||
|
ITAV is short for InfoTypeAndValue.
|
||
|
|
||
|
OSSL_CMP_ITAV_new_caCerts() creates an B<OSSL_CMP_ITAV> structure of type
|
||
|
B<caCerts> and fills it with a copy of the provided list of certificates.
|
||
|
The I<caCerts> argument may be NULL or contain any number of certificates.
|
||
|
|
||
|
OSSL_CMP_ITAV_get0_caCerts() requires that I<itav> has type B<caCerts>.
|
||
|
It assigns NULL to I<*out> if there are no CA certificates in I<itav>, otherwise
|
||
|
the internal pointer of type B<STACK_OF(X509)> with the certificates present.
|
||
|
|
||
|
=head1 NOTES
|
||
|
|
||
|
CMP is defined in RFC 4210.
|
||
|
|
||
|
=head1 RETURN VALUES
|
||
|
|
||
|
OSSL_CMP_ITAV_new_caCerts()
|
||
|
returns a pointer to the new ITAV structure on success, or NULL on error.
|
||
|
|
||
|
OSSL_CMP_ITAV_get0_caCerts()
|
||
|
returns 1 on success, 0 on error.
|
||
|
|
||
|
=head1 SEE ALSO
|
||
|
|
||
|
L<OSSL_CMP_ITAV_create(3)> and L<OSSL_CMP_ITAV_get0_type(3)>
|
||
|
|
||
|
=head1 HISTORY
|
||
|
|
||
|
OSSL_CMP_ITAV_new_caCerts() and
|
||
|
OSSL_CMP_ITAV_get0_rootCaCert()
|
||
|
were added in OpenSSL 3.2.
|
||
|
|
||
|
=head1 COPYRIGHT
|
||
|
|
||
|
Copyright 2022 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
|
||
|
L<https://www.openssl.org/source/license.html>.
|
||
|
|
||
|
=cut
|