SSL_CTX_set1_verify_cert_store.pod (openssl-1.1.1o) | : | SSL_CTX_set1_verify_cert_store.pod (openssl-1.1.1p) | ||
---|---|---|---|---|
=pod | =pod | |||
=head1 NAME | =head1 NAME | |||
SSL_CTX_set0_verify_cert_store, SSL_CTX_set1_verify_cert_store, | SSL_CTX_set0_verify_cert_store, SSL_CTX_set1_verify_cert_store, | |||
SSL_CTX_set0_chain_cert_store, SSL_CTX_set1_chain_cert_store, | SSL_CTX_set0_chain_cert_store, SSL_CTX_set1_chain_cert_store, | |||
SSL_set0_verify_cert_store, SSL_set1_verify_cert_store, | SSL_set0_verify_cert_store, SSL_set1_verify_cert_store, | |||
SSL_set0_chain_cert_store, SSL_set1_chain_cert_store - set certificate | SSL_set0_chain_cert_store, SSL_set1_chain_cert_store, | |||
SSL_CTX_get0_verify_cert_store, SSL_CTX_get0_chain_cert_store, | ||||
SSL_get0_verify_cert_store, SSL_get0_chain_cert_store - set certificate | ||||
verification or chain store | verification or chain store | |||
=head1 SYNOPSIS | =head1 SYNOPSIS | |||
#include <openssl/ssl.h> | #include <openssl/ssl.h> | |||
int SSL_CTX_set0_verify_cert_store(SSL_CTX *ctx, X509_STORE *st); | int SSL_CTX_set0_verify_cert_store(SSL_CTX *ctx, X509_STORE *st); | |||
int SSL_CTX_set1_verify_cert_store(SSL_CTX *ctx, X509_STORE *st); | int SSL_CTX_set1_verify_cert_store(SSL_CTX *ctx, X509_STORE *st); | |||
int SSL_CTX_set0_chain_cert_store(SSL_CTX *ctx, X509_STORE *st); | int SSL_CTX_set0_chain_cert_store(SSL_CTX *ctx, X509_STORE *st); | |||
int SSL_CTX_set1_chain_cert_store(SSL_CTX *ctx, X509_STORE *st); | int SSL_CTX_set1_chain_cert_store(SSL_CTX *ctx, X509_STORE *st); | |||
int SSL_CTX_get0_verify_cert_store(SSL_CTX *ctx, X509_STORE **st); | ||||
int SSL_CTX_get0_chain_cert_store(SSL_CTX *ctx, X509_STORE **st); | ||||
int SSL_set0_verify_cert_store(SSL *ctx, X509_STORE *st); | int SSL_set0_verify_cert_store(SSL *ctx, X509_STORE *st); | |||
int SSL_set1_verify_cert_store(SSL *ctx, X509_STORE *st); | int SSL_set1_verify_cert_store(SSL *ctx, X509_STORE *st); | |||
int SSL_set0_chain_cert_store(SSL *ctx, X509_STORE *st); | int SSL_set0_chain_cert_store(SSL *ctx, X509_STORE *st); | |||
int SSL_set1_chain_cert_store(SSL *ctx, X509_STORE *st); | int SSL_set1_chain_cert_store(SSL *ctx, X509_STORE *st); | |||
int SSL_get0_verify_cert_store(SSL *ctx, X509_STORE **st); | ||||
int SSL_get0_chain_cert_store(SSL *ctx, X509_STORE **st); | ||||
=head1 DESCRIPTION | =head1 DESCRIPTION | |||
SSL_CTX_set0_verify_cert_store() and SSL_CTX_set1_verify_cert_store() | SSL_CTX_set0_verify_cert_store() and SSL_CTX_set1_verify_cert_store() | |||
set the certificate store used for certificate verification to B<st>. | set the certificate store used for certificate verification to B<st>. | |||
SSL_CTX_set0_chain_cert_store() and SSL_CTX_set1_chain_cert_store() | SSL_CTX_set0_chain_cert_store() and SSL_CTX_set1_chain_cert_store() | |||
set the certificate store used for certificate chain building to B<st>. | set the certificate store used for certificate chain building to B<st>. | |||
SSL_set0_verify_cert_store(), SSL_set1_verify_cert_store(), | SSL_set0_verify_cert_store(), SSL_set1_verify_cert_store(), | |||
SSL_set0_chain_cert_store() and SSL_set1_chain_cert_store() are similar | SSL_set0_chain_cert_store() and SSL_set1_chain_cert_store() are similar | |||
except they apply to SSL structure B<ssl>. | except they apply to SSL structure B<ssl>. | |||
SSL_CTX_get0_verify_chain_store(), SSL_get0_verify_chain_store(), | ||||
SSL_CTX_get0_chain_cert_store() and SSL_get0_chain_cert_store() retrieve the | ||||
objects previously set via the above calls. A pointer to the object (or NULL if | ||||
no such object has been set) is written to B<*st>. | ||||
All these functions are implemented as macros. Those containing a B<1> | All these functions are implemented as macros. Those containing a B<1> | |||
increment the reference count of the supplied store so it must | increment the reference count of the supplied store so it must | |||
be freed at some point after the operation. Those containing a B<0> do | be freed at some point after the operation. Those containing a B<0> do | |||
not increment reference counts and the supplied store B<MUST NOT> be freed | not increment reference counts and the supplied store B<MUST NOT> be freed | |||
after the operation. | after the operation. | |||
=head1 NOTES | =head1 NOTES | |||
The stores pointers associated with an SSL_CTX structure are copied to any SSL | The stores pointers associated with an SSL_CTX structure are copied to any SSL | |||
structures when SSL_new() is called. As a result SSL structures will not be | structures when SSL_new() is called. As a result SSL structures will not be | |||
skipping to change at line 93 | skipping to change at line 104 | |||
L<SSL_add1_chain_cert(3)> | L<SSL_add1_chain_cert(3)> | |||
L<SSL_CTX_build_cert_chain(3)> | L<SSL_CTX_build_cert_chain(3)> | |||
L<SSL_build_cert_chain(3)> | L<SSL_build_cert_chain(3)> | |||
=head1 HISTORY | =head1 HISTORY | |||
These functions were added in OpenSSL 1.0.2. | These functions were added in OpenSSL 1.0.2. | |||
=head1 COPYRIGHT | =head1 COPYRIGHT | |||
Copyright 2013-2016 The OpenSSL Project Authors. All Rights Reserved. | Copyright 2013-2022 The OpenSSL Project Authors. All Rights Reserved. | |||
Licensed under the OpenSSL license (the "License"). You may not use | Licensed under the OpenSSL license (the "License"). You may not use | |||
this file except in compliance with the License. You can obtain a copy | this file except in compliance with the License. You can obtain a copy | |||
in the file LICENSE in the source distribution or at | in the file LICENSE in the source distribution or at | |||
L<https://www.openssl.org/source/license.html>. | L<https://www.openssl.org/source/license.html>. | |||
=cut | =cut | |||
End of changes. 5 change blocks. | ||||
2 lines changed or deleted | 13 lines changed or added |