NAME

OSSL_CMP_MSG_http_perform - client-side HTTP(S) transfer of a CMP request-response pair

SYNOPSIS

 #include <openssl/cmp.h>

 OSSL_CMP_MSG *OSSL_CMP_MSG_http_perform(OSSL_CMP_CTX *ctx,
                                         const OSSL_CMP_MSG *req);

DESCRIPTION

OSSL_CMP_MSG_http_perform() sends the given PKIMessage req to the CMP server specified in ctx via OSSL_CMP_CTX_set_serverPort(3), using any "CMP alias" optionally specified via OSSL_CMP_CTX_set_http_cb(3). It respects any timeout value set via OSSL_CMP_CTX_set1_proxy(3) and OSSL_HTTP_proxy_connect(3).

NOTES

CMP is defined in RFC 4210. HTTP transfer for CMP is defined in RFC 6712.

RETURN VALUES

OSSL_CMP_MSG_http_perform() returns a CMP message on success, else NULL.

SEE ALSO

OSSL_HTTP_proxy_connect(3).

HISTORY

The OpenSSL CMP support was added in OpenSSL 3.0.

COPYRIGHT

Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.