diff options
Diffstat (limited to 'src/lib/libcrypto/man/OCSP_CRLID_new.3')
-rw-r--r-- | src/lib/libcrypto/man/OCSP_CRLID_new.3 | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/OCSP_CRLID_new.3 b/src/lib/libcrypto/man/OCSP_CRLID_new.3 new file mode 100644 index 0000000000..556ec7f20e --- /dev/null +++ b/src/lib/libcrypto/man/OCSP_CRLID_new.3 | |||
@@ -0,0 +1,97 @@ | |||
1 | .\" $OpenBSD: OCSP_CRLID_new.3,v 1.1 2016/12/12 22:48:02 schwarze Exp $ | ||
2 | .\" | ||
3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | ||
4 | .\" | ||
5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
7 | .\" copyright notice and this permission notice appear in all copies. | ||
8 | .\" | ||
9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | .\" | ||
17 | .Dd $Mdocdate: December 12 2016 $ | ||
18 | .Dt OCSP_CRLID_NEW 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm OCSP_CRLID_new , | ||
22 | .Nm OCSP_CRLID_free , | ||
23 | .Nm OCSP_crlID_new | ||
24 | .Nd OCSP CRL extension | ||
25 | .Sh SYNOPSIS | ||
26 | .In opsenssl/ocsp.h | ||
27 | .Ft OCSP_CRLID * | ||
28 | .Fn OCSP_CRLID_new void | ||
29 | .Ft void | ||
30 | .Fn OCSP_CRLID_free "OCSP_CRLID *crlid" | ||
31 | .Ft X509_EXTENSION * | ||
32 | .Fo OCSP_crlID_new | ||
33 | .Fa "char *url" | ||
34 | .Fa "long *number" | ||
35 | .Fa "char *time" | ||
36 | .Fc | ||
37 | .Sh DESCRIPTION | ||
38 | If a client asks about the validity of a certificate and it turns | ||
39 | out to be invalid, the responder may optionally communicate which | ||
40 | certificate revocation list the certificate was found on. | ||
41 | The required data is stored as an ASN.1 CrlID structure in the | ||
42 | singleExtensions field of the SingleResponse structure. | ||
43 | The CrlID is represented by an | ||
44 | .Vt OCSP_CRLID | ||
45 | object, which will be stored inside the | ||
46 | .Vt OCSP_SINGLERESP | ||
47 | object documented in | ||
48 | .Xr OCSP_SINGLERESP_new 3 . | ||
49 | .Pp | ||
50 | .Fn OCSP_CRLID_new | ||
51 | allocates and initializes an empty | ||
52 | .Vt OCSP_CRLID | ||
53 | object. | ||
54 | .Fn OCSP_CRLID_free | ||
55 | frees | ||
56 | .Fa crlid . | ||
57 | .Pp | ||
58 | .Fn OCSP_crlID_new | ||
59 | accepts the | ||
60 | .Fa url | ||
61 | at which the CRL is available, the CRL | ||
62 | .Fa number , | ||
63 | and/or the | ||
64 | .Fa time | ||
65 | at which the CRL was created. | ||
66 | Each argument can be | ||
67 | .Dv NULL , | ||
68 | in which case the respective field is omitted. | ||
69 | The resulting CrlID structure is encoded in ASN.1 using | ||
70 | .Xr X509V3_EXT_i2d 3 | ||
71 | with criticality 0. | ||
72 | .Sh RETURN VALUES | ||
73 | .Fn OCSP_CRLID_new | ||
74 | returns a new | ||
75 | .Vt OCSP_CRLID | ||
76 | object or | ||
77 | .Dv NULL | ||
78 | if an error occurred. | ||
79 | .Pp | ||
80 | .Fn OCSP_crlID_new | ||
81 | returns a new | ||
82 | .Vt X509_EXTENSION | ||
83 | object or | ||
84 | .Dv NULL | ||
85 | if an error occurred. | ||
86 | .Sh SEE ALSO | ||
87 | .Xr OCSP_resp_find_status 3 , | ||
88 | .Xr OCSP_response_status 3 | ||
89 | .Sh STANDARDS | ||
90 | RFC 6960: X.509 Internet Public Key Infrastructure Online Certificate | ||
91 | Status Protocol, section 4.4.2: CRL References | ||
92 | .Sh CAVEATS | ||
93 | The function names | ||
94 | .Fn OCSP_CRLID_new | ||
95 | and | ||
96 | .Fn OCSP_crlID_new | ||
97 | only differ in case. | ||