summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/OCSP_CRLID_new.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/OCSP_CRLID_new.3')
-rw-r--r--src/lib/libcrypto/man/OCSP_CRLID_new.397
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
38If a client asks about the validity of a certificate and it turns
39out to be invalid, the responder may optionally communicate which
40certificate revocation list the certificate was found on.
41The required data is stored as an ASN.1 CrlID structure in the
42singleExtensions field of the SingleResponse structure.
43The CrlID is represented by an
44.Vt OCSP_CRLID
45object, which will be stored inside the
46.Vt OCSP_SINGLERESP
47object documented in
48.Xr OCSP_SINGLERESP_new 3 .
49.Pp
50.Fn OCSP_CRLID_new
51allocates and initializes an empty
52.Vt OCSP_CRLID
53object.
54.Fn OCSP_CRLID_free
55frees
56.Fa crlid .
57.Pp
58.Fn OCSP_crlID_new
59accepts the
60.Fa url
61at which the CRL is available, the CRL
62.Fa number ,
63and/or the
64.Fa time
65at which the CRL was created.
66Each argument can be
67.Dv NULL ,
68in which case the respective field is omitted.
69The resulting CrlID structure is encoded in ASN.1 using
70.Xr X509V3_EXT_i2d 3
71with criticality 0.
72.Sh RETURN VALUES
73.Fn OCSP_CRLID_new
74returns a new
75.Vt OCSP_CRLID
76object or
77.Dv NULL
78if an error occurred.
79.Pp
80.Fn OCSP_crlID_new
81returns a new
82.Vt X509_EXTENSION
83object or
84.Dv NULL
85if an error occurred.
86.Sh SEE ALSO
87.Xr OCSP_resp_find_status 3 ,
88.Xr OCSP_response_status 3
89.Sh STANDARDS
90RFC 6960: X.509 Internet Public Key Infrastructure Online Certificate
91Status Protocol, section 4.4.2: CRL References
92.Sh CAVEATS
93The function names
94.Fn OCSP_CRLID_new
95and
96.Fn OCSP_crlID_new
97only differ in case.