http_local.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2007-2021 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. #ifndef OSSL_CRYPTO_HTTP_LOCAL_H
  11. # define OSSL_CRYPTO_HTTP_LOCAL_H
  12. # include <openssl/ocsp.h>
  13. BIO *HTTP_asn1_item2bio(const ASN1_ITEM *it, const ASN1_VALUE *val);
  14. OSSL_HTTP_REQ_CTX *HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int use_http_proxy,
  15. const char *server, const char *port,
  16. const char *path,
  17. const STACK_OF(CONF_VALUE) *headers,
  18. const char *content_type, BIO *req_mem,
  19. int maxline, unsigned long max_resp_len,
  20. int timeout,
  21. const char *expected_content_type,
  22. int expect_asn1);
  23. ASN1_VALUE *HTTP_sendreq_bio(BIO *bio, OSSL_HTTP_bio_cb_t bio_update_fn,
  24. void *arg, const char *server, const char *port,
  25. const char *path, int use_ssl, int use_proxy,
  26. const STACK_OF(CONF_VALUE) *headers,
  27. const char *content_type,
  28. ASN1_VALUE *req, const ASN1_ITEM *req_it,
  29. int maxline, unsigned long max_resp_len,
  30. int timeout, const ASN1_ITEM *rsp_it);
  31. int http_use_proxy(const char *no_proxy, const char *server);
  32. const char *http_adapt_proxy(const char *proxy, const char *no_proxy,
  33. const char *server, int use_ssl);
  34. #endif /* !defined(OSSL_CRYPTO_HTTP_LOCAL_H) */