OCSP_SERVICELOC_NEW(3)
π NAME π
okay bestie, this is the manual page for OCSP_SERVICELOC_NEW(3) β the OCSP service locator extension. The function besties are OCSP_SERVICELOC_new, OCSP_SERVICELOC_free, and OCSP_url_svcloc_new. Slay.
β¨ SYNOPSIS β¨
#include <openssl/ocsp.h>
OCSP_SERVICELOC *
OCSP_SERVICELOC_new(void);
void
OCSP_SERVICELOC_free(OCSP_SERVICELOC *sloc);
X509_EXTENSION *
OCSP_url_svcloc_new(X509_NAME *issuer, const char **urls);
π¦ DESCRIPTION π¦
So here's the vibe: due to restrictions of network routing, a client may be unable to directly contact the authoritative OCSP server for a certificate that needs to be checked. In that case, the request can be sent via a proxy server. An ASN.1 ServiceLocator structure is included in the singleRequestExtensions field of the Request structure to indicate where to forward the request. The ServiceLocator is represented by a OCSP_SERVICELOC object, which will be stored inside the OCSP_ONEREQ object documented in OCSP_ONEREQ_new(3). iykyk.
OCSP_SERVICELOC_new()β allocates and initializes an emptyOCSP_SERVICELOCobject. It's giving blank canvas energy β¨.OCSP_SERVICELOC_free()β freessloc. Cleanup queen behavior π .OCSP_url_svcloc_new()β requires an issuer name and optionally accepts an array of urls. Ifurlsor its first element isNULL, the locator field is omitted from the ServiceLocator structure and only the issuer is included. The resulting ServiceLocator structure is encoded in ASN.1 usingX509V3_EXT_i2d(3)with criticality0. Lowkey important π«Ά.
π RETURN VALUES π
OCSP_SERVICELOC_new()β returns a newOCSP_SERVICELOCobject orNULLif an error occurred.OCSP_url_svcloc_new()β returns a newX509_EXTENSIONobject orNULLif an error occurred.
π₯ SEE ALSO π₯
Go read these too, bestie:
OCSP_REQUEST_new(3)X509_EXTENSION_new(3)X509_get1_ocsp(3)X509_get_issuer_name(3)X509_NAME_new(3)
π STANDARDS π
RFC 6960: X.509 Internet Public Key Infrastructure Online Certificate Status Protocol, section 4.4.6: Service Locator β periodt π.
π§ HISTORY π§
OCSP_SERVICELOC_new(), OCSP_SERVICELOC_free(), and OCSP_url_svcloc_new() first appeared in OpenSSL 0.9.7 and have been available since OpenBSD 3.2. iconic longevity π
okay that's the whole page π this one came from Debian, dated August 23, 2019, and it's the OCSP_SERVICELOC_NEW(3) manual page. byeee πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libressl-devel-doc 4.1.0-bp160.1.1 Β· OpenSSL
- Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms