-.\" $OpenBSD: X509_STORE_CTX_get_error.3,v 1.13 2019/08/25 15:39:10 schwarze Exp $
+.\" $OpenBSD: X509_STORE_CTX_get_error.3,v 1.14 2021/07/21 15:03:45 schwarze Exp $
.\" full merge up to:
.\" OpenSSL crypto/X509_STORE_CTX_get_error f0e0fd51 Apr 14 23:59:26 2016 -0400
.\" selective merge up to:
-.\" OpenSSL man3/X509_STORE_CTX_get_error bb00b040 Aug 5 14:14:54 2019 +0200
-.\" OpenSSL man3/X509_STORE_CTX_new 7643a172 Apr 21 13:35:51 2017 +0200
+.\" OpenSSL man3/X509_STORE_CTX_get_error 24a535ea Sep 22 13:14:20 2020 +0100
+.\" OpenSSL man3/X509_STORE_CTX_new 24a535ea Sep 22 13:14:20 2020 +0100
.\"
.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
.\" Copyright (c) 2009, 2013, 2015, 2016 The OpenSSL Project.
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 25 2019 $
+.Dd $Mdocdate: July 21 2021 $
.Dt X509_STORE_CTX_GET_ERROR 3
.Os
.Sh NAME
.Nm X509_STORE_CTX_get_current_cert ,
.Nm X509_STORE_CTX_get0_cert ,
.Nm X509_STORE_CTX_get0_chain ,
+.Nm X509_STORE_CTX_get_chain ,
.Nm X509_STORE_CTX_get1_chain ,
.Nm X509_verify_cert_error_string
.Nd get or set certificate verification status information
.Fa "X509_STORE_CTX *ctx"
.Fc
.Ft STACK_OF(X509) *
+.Fo X509_STORE_CTX_get_chain
+.Fa "X509_STORE_CTX *ctx"
+.Fc
+.Ft STACK_OF(X509) *
.Fo X509_STORE_CTX_get1_chain
.Fa "X509_STORE_CTX *ctx"
.Fc
If the call to
.Xr X509_verify_cert 3
was not successful, the returned chain may be incomplete or invalid.
+.Fn X509_STORE_CTX_get_chain
+is a deprecated alias of
+.Fn X509_STORE_CTX_get0_chain .
.Fn X509_STORE_CTX_get1_chain
returns a deep copy of the same chain which persists even after the
.Fa ctx
retrieves an internal pointer to the certificate being verified by
.Fa ctx .
.Pp
-.Fn X509_STORE_CTX_get0_chain
+.Fn X509_STORE_CTX_get0_chain ,
+.Fn X509_STORE_CTX_get_chain ,
and
.Fn X509_STORE_CTX_get1_chain
return a pointer to a stack of certificates or
.Fn X509_STORE_CTX_set_error ,
.Fn X509_STORE_CTX_get_error_depth ,
.Fn X509_STORE_CTX_get_current_cert ,
+.Fn X509_STORE_CTX_get_chain ,
and
.Fn X509_verify_cert_error_string
first appeared in SSLeay 0.8.0 and have been available since