Additional "chain_cert" functions.
authorRob Stradling <rob.stradling@comodo.com>
Mon, 11 Nov 2013 17:04:24 +0000 (18:04 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 13 Nov 2013 23:48:35 +0000 (23:48 +0000)
commit7b6b246fd393cbe07bc1f0d456140efdff59f971
tree4639f2a48c9ac9c43859d653b6567945611b1a22
parent44314cf64d1e51c7493799e77b14ae4e94a4c8cf
Additional "chain_cert" functions.

PR#3169

This patch, which currently applies successfully against master and
1_0_2, adds the following functions:

SSL_[CTX_]select_current_cert() - set the current certificate without
disturbing the existing structure.

SSL_[CTX_]get0_chain_certs() - get the current certificate's chain.

SSL_[CTX_]clear_chain_certs() - clear the current certificate's chain.

The patch also adds these functions to, and fixes some existing errors
in, SSL_CTX_add1_chain_cert.pod.
doc/ssl/SSL_CTX_add1_chain_cert.pod
ssl/s3_lib.c
ssl/ssl.h
ssl/ssl_cert.c
ssl/ssl_locl.h