1X509_LOAD_HTTP(3ossl)               OpenSSL              X509_LOAD_HTTP(3ossl)
2
3
4

NAME

6       X509_load_http, X509_http_nbio, X509_CRL_load_http, X509_CRL_http_nbio
7       - certificate and CRL loading functions
8

SYNOPSIS

10        #include <openssl/x509.h>
11
12        X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
13        X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
14
15       The following macros have been deprecated since OpenSSL 3.0, and can be
16       hidden entirely by defining OPENSSL_API_COMPAT with a suitable version
17       value, see openssl_user_macros(7):
18
19        #define X509_http_nbio(rctx, pcert)
20        #define X509_CRL_http_nbio(rctx, pcrl)
21

DESCRIPTION

23       X509_load_http() and X509_CRL_load_http() loads a certificate or a CRL,
24       respectively, in ASN.1 format using HTTP from the given url.
25
26       If bio is given and rbio is NULL then this BIO is used instead of an
27       internal one for connecting, writing the request, and reading the
28       response.  If both bio and rbio are given (which may be memory BIOs,
29       for instance) then no explicit connection is attempted, bio is used for
30       writing the request, and rbio for reading the response.
31
32       If the timeout parameter is > 0 this indicates the maximum number of
33       seconds to wait until the transfer is complete.  A value of 0 enables
34       waiting indefinitely, while a value < 0 immediately leads to a timeout
35       condition.
36
37       X509_http_nbio() and X509_CRL_http_nbio() are macros for backward
38       compatibility that have the same effect as the functions above but with
39       infinite timeout and without the possibility to specify custom BIOs.
40

RETURN VALUES

42       On success the function yield the loaded value, else NULL.  Error
43       conditions include connection/transfer timeout, parse errors, etc.
44

SEE ALSO

46       OSSL_HTTP_get(3)
47

HISTORY

49       X509_load_http() and X509_CRL_load_http() were added in OpenSSL 3.0.
50       X509_http_nbio() and X509_CRL_http_nbio() were deprecated in OpenSSL
51       3.0.
52
54       Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
55
56       Licensed under the Apache License 2.0 (the "License").  You may not use
57       this file except in compliance with the License.  You can obtain a copy
58       in the file LICENSE in the source distribution or at
59       <https://www.openssl.org/source/license.html>.
60
61
62
633.1.1                             2023-08-31             X509_LOAD_HTTP(3ossl)
Impressum