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:47:37 +0000 (23:47 +0000)
commitdc4bdf592f2865197312ebf7aee2c1d0a1e30b4f
tree896f8a823d44b683b4fd46de79aed9ba3c2d7779
parentb03d0513d039b78ae1f868e9c17b57959c26d3d2
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.
(cherry picked from commit 2f56c9c015dbca45379c9a725915b3b8e765a119)
doc/ssl/SSL_CTX_add1_chain_cert.pod
ssl/s3_lib.c
ssl/ssl.h
ssl/ssl_cert.c
ssl/ssl_locl.h