From baea804441204ca9795de29bdc8592ff055af0d5 Mon Sep 17 00:00:00 2001 From: schwarze Date: Sun, 25 Feb 2018 22:52:48 +0000 Subject: [PATCH] In x509_vfy.h rev. 1.24 2018/02/22 17:19:31, jsing@ provided X509_STORE_set_ex_data(3) and X509_STORE_get_ex_data(3). Document them. --- lib/libcrypto/man/RSA_get_ex_new_index.3 | 10 +++++-- lib/libcrypto/man/X509_STORE_set1_param.3 | 36 +++++++++++++++++++++-- 2 files changed, 40 insertions(+), 6 deletions(-) diff --git a/lib/libcrypto/man/RSA_get_ex_new_index.3 b/lib/libcrypto/man/RSA_get_ex_new_index.3 index a5331e6ab14..bc2cf62ae46 100644 --- a/lib/libcrypto/man/RSA_get_ex_new_index.3 +++ b/lib/libcrypto/man/RSA_get_ex_new_index.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: RSA_get_ex_new_index.3,v 1.7 2017/08/01 14:57:03 schwarze Exp $ +.\" $OpenBSD: RSA_get_ex_new_index.3,v 1.8 2018/02/25 22:52:48 schwarze Exp $ .\" OpenSSL 35cb565a Nov 19 15:49:30 2015 -0500 .\" .\" This file was written by Ulf Moeller and @@ -49,7 +49,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: August 1 2017 $ +.Dd $Mdocdate: February 25 2018 $ .Dt RSA_GET_EX_NEW_INDEX 3 .Os .Sh NAME @@ -265,7 +265,11 @@ On failure an error code can be obtained from .Xr DH_set_ex_data 3 , .Xr DSA_set_ex_data 3 , .Xr RSA_new 3 , -.Xr X509_STORE_CTX_set_ex_data 3 +.Xr SSL_CTX_set_ex_data 3 , +.Xr SSL_SESSION_set_ex_data 3 , +.Xr SSL_set_ex_data 3 , +.Xr X509_STORE_CTX_set_ex_data 3 , +.Xr X509_STORE_set_ex_data 3 .Sh HISTORY .Fn RSA_get_ex_new_index , .Fn RSA_set_ex_data , diff --git a/lib/libcrypto/man/X509_STORE_set1_param.3 b/lib/libcrypto/man/X509_STORE_set1_param.3 index adbf8f5a1ee..59050434668 100644 --- a/lib/libcrypto/man/X509_STORE_set1_param.3 +++ b/lib/libcrypto/man/X509_STORE_set1_param.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: X509_STORE_set1_param.3,v 1.5 2018/02/25 22:24:18 schwarze Exp $ +.\" $OpenBSD: X509_STORE_set1_param.3,v 1.6 2018/02/25 22:52:48 schwarze Exp $ .\" content checked up to: .\" OpenSSL man3/X509_STORE_get0_param e90fc053 Jul 15 09:39:45 2017 -0400 .\" @@ -27,7 +27,9 @@ .Nm X509_STORE_set_depth , .Nm X509_STORE_add_cert , .Nm X509_STORE_add_crl , -.Nm X509_STORE_get0_objects +.Nm X509_STORE_get0_objects , +.Nm X509_STORE_set_ex_data , +.Nm X509_STORE_get_ex_data .Nd get and set X509_STORE data .Sh SYNOPSIS .In openssl/x509_vfy.h @@ -70,6 +72,17 @@ .Fo X509_STORE_get0_objects .Fa "X509_STORE *store" .Fc +.Ft int +.Fo X509_STORE_set_ex_data +.Fa "X509_STORE *store" +.Fa "int idx" +.Fa "void *arg" +.Fc +.Ft void * +.Fo X509_STORE_get_ex_data +.Fa "X509_STORE *store" +.Fa "int idx" +.Fc .Sh DESCRIPTION .Fn X509_STORE_set1_param copies the verification parameters from @@ -101,11 +114,23 @@ or the certificate revocation list to the .Fa store , increasing its reference count by 1 in case of success. +.Pp +.Fn X509_STORE_set_ex_data +and +.Fn X509_STORE_get_ex_data +handle application specific data in +.Vt X509_STORE +objects. +Their usage is identical to that of +.Xr RSA_set_ex_data 3 +and +.Xr RSA_get_ex_data 3 . .Sh RETURN VALUES .Fn X509_STORE_set1_param , .Fn X509_STORE_set_purpose , +.Fn X509_STORE_set_trust , and -.Fn X509_STORE_set_trust +.Fn X509_STORE_set_ex_data return 1 for success or 0 for failure. .Pp .Fn X509_STORE_set_flags @@ -136,6 +161,11 @@ returns an internal pointer to the stack of certificates, revocation lists, and private keys contained in the .Fa store . The returned pointer must not be freed by the calling application. +.Pp +.Fn X509_STORE_get_ex_data +returns the application data or +.Dv NULL +on failure. .Sh SEE ALSO .Xr SSL_set1_param 3 , .Xr X509_OBJECT_get0_X509 3 , -- 2.20.1