summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/X509_STORE_set1_param.3
diff options
context:
space:
mode:
authorschwarze <>2018-02-25 22:52:48 +0000
committerschwarze <>2018-02-25 22:52:48 +0000
commitb7e9ca652e283beea6335188d22d1480dfe65a7c (patch)
tree0af305d7f169971e885cd26b3fb9a2aabe97cc9c /src/lib/libcrypto/man/X509_STORE_set1_param.3
parenta2e0ddbb2e8e139d15a2c916cedaebb4ac59aed2 (diff)
downloadopenbsd-b7e9ca652e283beea6335188d22d1480dfe65a7c.tar.gz
openbsd-b7e9ca652e283beea6335188d22d1480dfe65a7c.tar.bz2
openbsd-b7e9ca652e283beea6335188d22d1480dfe65a7c.zip
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.
Diffstat (limited to 'src/lib/libcrypto/man/X509_STORE_set1_param.3')
-rw-r--r--src/lib/libcrypto/man/X509_STORE_set1_param.336
1 files changed, 33 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/X509_STORE_set1_param.3 b/src/lib/libcrypto/man/X509_STORE_set1_param.3
index adbf8f5a1e..5905043466 100644
--- a/src/lib/libcrypto/man/X509_STORE_set1_param.3
+++ b/src/lib/libcrypto/man/X509_STORE_set1_param.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_STORE_set1_param.3,v 1.5 2018/02/25 22:24:18 schwarze Exp $ 1.\" $OpenBSD: X509_STORE_set1_param.3,v 1.6 2018/02/25 22:52:48 schwarze Exp $
2.\" content checked up to: 2.\" content checked up to:
3.\" OpenSSL man3/X509_STORE_get0_param e90fc053 Jul 15 09:39:45 2017 -0400 3.\" OpenSSL man3/X509_STORE_get0_param e90fc053 Jul 15 09:39:45 2017 -0400
4.\" 4.\"
@@ -27,7 +27,9 @@
27.Nm X509_STORE_set_depth , 27.Nm X509_STORE_set_depth ,
28.Nm X509_STORE_add_cert , 28.Nm X509_STORE_add_cert ,
29.Nm X509_STORE_add_crl , 29.Nm X509_STORE_add_crl ,
30.Nm X509_STORE_get0_objects 30.Nm X509_STORE_get0_objects ,
31.Nm X509_STORE_set_ex_data ,
32.Nm X509_STORE_get_ex_data
31.Nd get and set X509_STORE data 33.Nd get and set X509_STORE data
32.Sh SYNOPSIS 34.Sh SYNOPSIS
33.In openssl/x509_vfy.h 35.In openssl/x509_vfy.h
@@ -70,6 +72,17 @@
70.Fo X509_STORE_get0_objects 72.Fo X509_STORE_get0_objects
71.Fa "X509_STORE *store" 73.Fa "X509_STORE *store"
72.Fc 74.Fc
75.Ft int
76.Fo X509_STORE_set_ex_data
77.Fa "X509_STORE *store"
78.Fa "int idx"
79.Fa "void *arg"
80.Fc
81.Ft void *
82.Fo X509_STORE_get_ex_data
83.Fa "X509_STORE *store"
84.Fa "int idx"
85.Fc
73.Sh DESCRIPTION 86.Sh DESCRIPTION
74.Fn X509_STORE_set1_param 87.Fn X509_STORE_set1_param
75copies the verification parameters from 88copies the verification parameters from
@@ -101,11 +114,23 @@ or the certificate revocation list
101to the 114to the
102.Fa store , 115.Fa store ,
103increasing its reference count by 1 in case of success. 116increasing its reference count by 1 in case of success.
117.Pp
118.Fn X509_STORE_set_ex_data
119and
120.Fn X509_STORE_get_ex_data
121handle application specific data in
122.Vt X509_STORE
123objects.
124Their usage is identical to that of
125.Xr RSA_set_ex_data 3
126and
127.Xr RSA_get_ex_data 3 .
104.Sh RETURN VALUES 128.Sh RETURN VALUES
105.Fn X509_STORE_set1_param , 129.Fn X509_STORE_set1_param ,
106.Fn X509_STORE_set_purpose , 130.Fn X509_STORE_set_purpose ,
131.Fn X509_STORE_set_trust ,
107and 132and
108.Fn X509_STORE_set_trust 133.Fn X509_STORE_set_ex_data
109return 1 for success or 0 for failure. 134return 1 for success or 0 for failure.
110.Pp 135.Pp
111.Fn X509_STORE_set_flags 136.Fn X509_STORE_set_flags
@@ -136,6 +161,11 @@ returns an internal pointer to the stack of certificates, revocation lists,
136and private keys contained in the 161and private keys contained in the
137.Fa store . 162.Fa store .
138The returned pointer must not be freed by the calling application. 163The returned pointer must not be freed by the calling application.
164.Pp
165.Fn X509_STORE_get_ex_data
166returns the application data or
167.Dv NULL
168on failure.
139.Sh SEE ALSO 169.Sh SEE ALSO
140.Xr SSL_set1_param 3 , 170.Xr SSL_set1_param 3 ,
141.Xr X509_OBJECT_get0_X509 3 , 171.Xr X509_OBJECT_get0_X509 3 ,