]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/http/http_local.h
Deprecate OCSP_xxx API for OSSL_HTTP_xxx
[thirdparty/openssl.git] / crypto / http / http_local.h
CommitLineData
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
9253f834 16BIO *HTTP_asn1_item2bio(const ASN1_ITEM *it, const ASN1_VALUE *val);
29f178bd
DDO
17OSSL_HTTP_REQ_CTX *HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int use_http_proxy,
18 const char *server, const char *port,
19 const char *path,
20 const STACK_OF(CONF_VALUE) *headers,
21 const char *content_type, BIO *req_mem,
22 int maxline, unsigned long max_resp_len,
23 int timeout,
24 const char *expected_content_type,
25 int expect_asn1);
26ASN1_VALUE *HTTP_sendreq_bio(BIO *bio, OSSL_HTTP_bio_cb_t bio_update_fn,
27 void *arg, const char *server, const char *port,
28 const char *path, int use_ssl, int use_proxy,
29 const STACK_OF(CONF_VALUE) *headers,
30 const char *content_type,
31 ASN1_VALUE *req, const ASN1_ITEM *req_it,
32 int maxline, unsigned long max_resp_len,
33 int timeout, const ASN1_ITEM *rsp_it);
afe554c2
DDO
34int http_use_proxy(const char *no_proxy, const char *server);
35const char *http_adapt_proxy(const char *proxy, const char *no_proxy,
36 const char *server, int use_ssl);
29f178bd 37
b5adba20 38#endif /* !defined(OSSL_CRYPTO_HTTP_LOCAL_H) */