1 .\" $OpenBSD: OCSP_SERVICELOC_new.3,v 1.5 2016/12/25 22:15:10 schwarze Exp $
3 .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
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.
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.
17 .Dd $Mdocdate: December 25 2016 $
18 .Dt OCSP_SERVICELOC_NEW 3
21 .Nm OCSP_SERVICELOC_new ,
22 .Nm OCSP_SERVICELOC_free ,
23 .Nm OCSP_url_svcloc_new
24 .Nd OCSP service locator extension
28 .Fn OCSP_SERVICELOC_new void
30 .Fn OCSP_SERVICELOC_free "OCSP_SERVICELOC *sloc"
32 .Fo OCSP_url_svcloc_new
33 .Fa "X509_NAME *issuer"
37 Due to restrictions of network routing, a client may be unable to
38 directly contact the authoritative OCSP server for a certificate
39 that needs to be checked.
40 In that case, the request can be sent via a proxy server.
43 structure is included in the singleRequestExtensions field of the
45 structure to indicate where to forward the request.
50 object, which will be stored inside the
53 .Xr OCSP_ONEREQ_new 3 .
55 .Fn OCSP_SERVICELOC_new
56 allocates and initializes an empty
59 .Fn OCSP_SERVICELOC_free
63 .Fn OCSP_url_svcloc_new
66 name and optionally accepts an array of
70 or its first element is
72 the locator field is omitted from the
74 structure and only the issuer is included.
77 structure is encoded in ASN.1 using
81 .Fn OCSP_SERVICELOC_new
88 .Fn OCSP_url_svcloc_new
95 .Xr OCSP_REQUEST_new 3 ,
96 .Xr X509_EXTENSION_new 3 ,
97 .Xr X509_get_issuer_name 3 ,
100 RFC 6960: X.509 Internet Public Key Infrastructure Online Certificate
101 Status Protocol, section 4.4.6: Service Locator