]>
Commit | Line | Data |
---|---|---|
29f178bd DDO |
1 | /* |
2 | * Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved. | |
3 | * Copyright Siemens AG 2018-2020 | |
4 | * | |
5 | * Licensed under the Apache License 2.0 (the "License"). You may not use | |
6 | * this file except in compliance with the License. You can obtain a copy | |
7 | * in the file LICENSE in the source distribution or at | |
8 | * https://www.openssl.org/source/license.html | |
9 | */ | |
10 | ||
11 | #ifndef OSSL_CRYPTO_HTTP_LOCAL_H | |
12 | # define OSSL_CRYPTO_HTTP_LOCAL_H | |
13 | ||
14 | # include <openssl/ocsp.h> | |
15 | ||
16 | /* name aliases for legacy names with name prefix "OCSP_" */ | |
17 | typedef OCSP_REQ_CTX OSSL_HTTP_REQ_CTX; | |
18 | /* functions meanwhile only used internally */ | |
100cc8b0 DDO |
19 | # define OSSL_HTTP_REQ_CTX_new OCSP_REQ_CTX_new |
20 | # define OSSL_HTTP_REQ_CTX_free OCSP_REQ_CTX_free | |
21 | # define OSSL_HTTP_REQ_CTX_header OCSP_REQ_CTX_http | |
22 | # define OSSL_HTTP_REQ_CTX_add1_header OCSP_REQ_CTX_add1_header | |
23 | # define OSSL_HTTP_REQ_CTX_i2d OCSP_REQ_CTX_i2d | |
24 | # define OSSL_HTTP_REQ_CTX_nbio OCSP_REQ_CTX_nbio | |
e8d0819d | 25 | # define OSSL_HTTP_REQ_CTX_sendreq_d2i OCSP_REQ_CTX_nbio_d2i |
29f178bd DDO |
26 | /* functions that are meanwhile unused */ |
27 | # define OSSL_HTTP_REQ_CTX_get0_mem_bio OCSP_REQ_CTX_get0_mem_bio /* undoc'd */ | |
28 | # define OSSL_HTTP_REQ_CTX_set_max_response_length OCSP_set_max_response_length | |
29 | ||
30 | BIO *HTTP_asn1_item2bio(const ASN1_ITEM *it, ASN1_VALUE *val); | |
31 | OSSL_HTTP_REQ_CTX *HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int use_http_proxy, | |
32 | const char *server, const char *port, | |
33 | const char *path, | |
34 | const STACK_OF(CONF_VALUE) *headers, | |
35 | const char *content_type, BIO *req_mem, | |
36 | int maxline, unsigned long max_resp_len, | |
37 | int timeout, | |
38 | const char *expected_content_type, | |
39 | int expect_asn1); | |
40 | ASN1_VALUE *HTTP_sendreq_bio(BIO *bio, OSSL_HTTP_bio_cb_t bio_update_fn, | |
41 | void *arg, const char *server, const char *port, | |
42 | const char *path, int use_ssl, int use_proxy, | |
43 | const STACK_OF(CONF_VALUE) *headers, | |
44 | const char *content_type, | |
45 | ASN1_VALUE *req, const ASN1_ITEM *req_it, | |
46 | int maxline, unsigned long max_resp_len, | |
47 | int timeout, const ASN1_ITEM *rsp_it); | |
48 | ||
b5adba20 | 49 | #endif /* !defined(OSSL_CRYPTO_HTTP_LOCAL_H) */ |