1
- .\" $OpenBSD: X509_STORE_CTX_get_ex_new_index.3,v 1.5 2019/06/06 01:06:59 schwarze Exp $
1
+ .\" $OpenBSD: X509_STORE_CTX_get_ex_new_index.3,v 1.6 2021/07/29 08:32:13 schwarze Exp $
2
2
.\" OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400
3
3
.\"
4
4
.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
48
48
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49
49
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50
50
.\"
51
- .Dd $Mdocdate : June 6 2019 $
51
+ .Dd $Mdocdate : July 29 2021 $
52
52
.Dt X509_STORE_CTX_GET_EX_NEW_INDEX 3
53
53
.Os
54
54
.Sh NAME
55
55
.Nm X509_STORE_CTX_get_ex_new_index ,
56
56
.Nm X509_STORE_CTX_set_ex_data ,
57
- .Nm X509_STORE_CTX_get_ex_data
57
+ .Nm X509_STORE_CTX_get_ex_data ,
58
+ .Nm X509_STORE_CTX_set_app_data ,
59
+ .Nm X509_STORE_CTX_get_app_data
58
60
.Nd add application specific data to X509_STORE_CTX structures
59
61
.Sh SYNOPSIS
60
62
.In openssl/x509_vfy.h
77
79
.Fa " X509_STORE_CTX *d"
78
80
.Fa " int idx"
79
81
.Fc
82
+ .Ft int
83
+ .Fo X509_STORE_CTX_set_app_data
84
+ .Fa " X509_STORE_CTX *d"
85
+ .Fa " void *arg"
86
+ .Fc
87
+ .Ft void *
88
+ .Fo X509_STORE_CTX_get_app_data
89
+ .Fa " X509_STORE_CTX *d"
90
+ .Fc
80
91
.Sh DESCRIPTION
81
92
These functions handle application specific data in
82
93
.Vt X509_STORE_CTX
@@ -94,13 +105,49 @@ library to store the
94
105
structure associated with a verification operation in an
95
106
.Vt X509_STORE_CTX
96
107
structure.
108
+ .Pp
109
+ .Fn X509_STORE_CTX_set_app_data
110
+ and
111
+ .Fn X509_STORE_CTX_get_app_data
112
+ are macros calling
113
+ .Fn X509_STORE_CTX_set_ex_data
114
+ and
115
+ .Fn X509_STORE_CTX_get_ex_data ,
116
+ respectively, with an
117
+ .Fa idx
118
+ of 0.
119
+ .Sh RETURN VALUES
120
+ .Fn X509_STORE_CTX_get_ex_new_index
121
+ returns a new index or \- 1 on failure.
122
+ .Pp
123
+ .Fn X509_STORE_CTX_set_ex_data
124
+ and
125
+ .Fn X509_STORE_CTX_set_app_data
126
+ return 1 on success or 0 on failure.
127
+ .Pp
128
+ .Fn X509_STORE_CTX_get_ex_data
129
+ and
130
+ .Fn X509_STORE_CTX_get_app_data
131
+ return the application data or
132
+ .Dv NULL
133
+ on failure.
134
+ .Dv NULL
135
+ may also be valid application data, but currently these functions
136
+ can only fail if given an invalid
137
+ .Fa idx
138
+ argument.
97
139
.Sh SEE ALSO
98
140
.Xr RSA_get_ex_new_index 3 ,
99
141
.Xr X509_STORE_CTX_new 3
100
142
.Sh HISTORY
143
+ .Fn X509_STORE_CTX_set_app_data
144
+ and
145
+ .Fn X509_STORE_CTX_get_app_data
146
+ first appeared in SSLeay 0.8.0 and
101
147
.Fn X509_STORE_CTX_get_ex_new_index ,
102
148
.Fn X509_STORE_CTX_set_ex_data ,
103
149
and
104
150
.Fn X509_STORE_CTX_get_ex_data
105
- first appeared in SSLeay 0.9.0 and have been available since
151
+ in SSLeay 0.9.0.
152
+ All these functions have been available since
106
153
.Ox 2.4 .
0 commit comments