1OSSL_CMP_MSG_HTTP_PERFORM(3ossl) OpenSSL OSSL_CMP_MSG_HTTP_PERFORM(3ossl)
2
3
4
6 OSSL_CMP_MSG_http_perform - client-side HTTP(S) transfer of a CMP
7 request-response pair
8
10 #include <openssl/cmp.h>
11
12 OSSL_CMP_MSG *OSSL_CMP_MSG_http_perform(OSSL_CMP_CTX *ctx,
13 const OSSL_CMP_MSG *req);
14
16 OSSL_CMP_MSG_http_perform() sends the given PKIMessage req to the CMP
17 server specified in ctx via OSSL_CMP_CTX_set1_server(3) and optionally
18 OSSL_CMP_CTX_set_serverPort(3), using any "CMP alias" optionally
19 specified via OSSL_CMP_CTX_set1_serverPath(3). The default port is 80
20 for HTTP and 443 for HTTPS; the default path is "/". On success the
21 function returns the server's response PKIMessage.
22
23 The function makes use of any HTTP callback function set via
24 OSSL_CMP_CTX_set_http_cb(3). It respects any timeout value set via
25 OSSL_CMP_CTX_set_option(3) with an OSSL_CMP_OPT_MSG_TIMEOUT argument.
26 It also respects any HTTP(S) proxy options set via
27 OSSL_CMP_CTX_set1_proxy(3) and OSSL_CMP_CTX_set1_no_proxy(3) and the
28 respective environment variables. Proxying plain HTTP is supported
29 directly, while using a proxy for HTTPS connections requires a suitable
30 callback function such as OSSL_HTTP_proxy_connect(3).
31
33 CMP is defined in RFC 4210. HTTP transfer for CMP is defined in RFC
34 6712.
35
37 OSSL_CMP_MSG_http_perform() returns a CMP message on success, else
38 NULL.
39
41 OSSL_CMP_CTX_new(3), OSSL_HTTP_proxy_connect(3).
42
44 The OpenSSL CMP support was added in OpenSSL 3.0.
45
47 Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
48
49 Licensed under the Apache License 2.0 (the "License"). You may not use
50 this file except in compliance with the License. You can obtain a copy
51 in the file LICENSE in the source distribution or at
52 <https://www.openssl.org/source/license.html>.
53
54
55
563.0.9 2023-07-27 OSSL_CMP_MSG_HTTP_PERFORM(3ossl)