From: Antoine Salon Date: Tue, 16 Oct 2018 16:07:00 +0000 (-0700) Subject: SSL extra chain certificates doc X-Git-Tag: openssl-3.0.0-alpha1~2898 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dc703d6b469f1b186483a55b59013fbaca2228fd;p=oweals%2Fopenssl.git SSL extra chain certificates doc Signed-off-by: Antoine Salon Reviewed-by: Paul Dale Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/7522) --- diff --git a/doc/man3/SSL_CTX_add_extra_chain_cert.pod b/doc/man3/SSL_CTX_add_extra_chain_cert.pod index 05d17f8b0f..6e429c31bd 100644 --- a/doc/man3/SSL_CTX_add_extra_chain_cert.pod +++ b/doc/man3/SSL_CTX_add_extra_chain_cert.pod @@ -2,14 +2,19 @@ =head1 NAME -SSL_CTX_add_extra_chain_cert, SSL_CTX_clear_extra_chain_certs - add or clear -extra chain certificates +SSL_CTX_add_extra_chain_cert, +SSL_CTX_get_extra_chain_certs, +SSL_CTX_get_extra_chain_certs_only, +SSL_CTX_clear_extra_chain_certs +- add, get or clear extra chain certificates =head1 SYNOPSIS #include long SSL_CTX_add_extra_chain_cert(SSL_CTX *ctx, X509 *x509); + long SSL_CTX_get_extra_chain_certs(SSL_CTX *ctx, STACK_OF(X509) **sk); + long SSL_CTX_get_extra_chain_certs_only(SSL_CTX *ctx, STACK_OF(X509) **sk); long SSL_CTX_clear_extra_chain_certs(SSL_CTX *ctx); =head1 DESCRIPTION @@ -18,6 +23,13 @@ SSL_CTX_add_extra_chain_cert() adds the certificate B to the extra chain certificates associated with B. Several certificates can be added one after another. +SSL_CTX_get_extra_chain_certs() retrieves the extra chain certificates +associated with B, or the chain associated with the current certificate +of B if the extra chain is empty. + +SSL_CTX_get_extra_chain_certs_only() retrieves the extra chain certificates +associated with B. + SSL_CTX_clear_extra_chain_certs() clears all extra chain certificates associated with B. @@ -70,7 +82,7 @@ L =head1 COPYRIGHT -Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved. +Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved. Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy diff --git a/doc/man7/ssl.pod b/doc/man7/ssl.pod index d439860b5b..6cc1c4bcff 100644 --- a/doc/man7/ssl.pod +++ b/doc/man7/ssl.pod @@ -254,6 +254,10 @@ protocol context defined in the B structure. =item int B(long argl, char *argp, int (*new_func);(void), int (*dup_func)(void), void (*free_func)(void)) +=item long B(SSL_CTX *ctx, STACK_OF(X509) **sk); + +=item long B(SSL_CTX *ctx, STACK_OF(X509) **sk); + =item void (*B(SSL_CTX *ctx))(SSL *ssl, int cb, int ret); =item int B(const SSL_CTX *ctx); diff --git a/util/private.num b/util/private.num index c5f34314f1..4a0ed292ec 100644 --- a/util/private.num +++ b/util/private.num @@ -324,6 +324,8 @@ SSL_CTX_disable_ct define SSL_CTX_generate_session_ticket_fn define SSL_CTX_get0_chain_certs define SSL_CTX_get_default_read_ahead define +SSL_CTX_get_extra_chain_certs define +SSL_CTX_get_extra_chain_certs_only define SSL_CTX_get_max_cert_list define SSL_CTX_get_max_proto_version define SSL_CTX_get_min_proto_version define