manpagez: man pages & more
man OSSL_CMP_MSG_http_perform(3)
Home | html | info | man
OSSL_CMP_MSG_HTTP_PERFORM(3ossl)    OpenSSL   OSSL_CMP_MSG_HTTP_PERFORM(3ossl)



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(3) sends the given PKIMessage req to the CMP
       server specified in ctx via OSSL_CMP_CTX_set1_server(3) and optionally
       OSSL_CMP_CTX_set_serverPort(3), using any "CMP alias" optionally
       specified via OSSL_CMP_CTX_set1_serverPath(3).  The default port is 80
       for HTTP and 443 for HTTPS; the default path is "/".  On success the
       function returns the server's response PKIMessage.

       The function makes use of any HTTP callback function set via
       OSSL_CMP_CTX_set_http_cb(3).  It respects any timeout value set via
       OSSL_CMP_CTX_set_option(3) with an OSSL_CMP_OPT_MSG_TIMEOUT argument.
       It also respects any HTTP(S) proxy options set via
       OSSL_CMP_CTX_set1_proxy(3) and OSSL_CMP_CTX_set1_no_proxy(3) and the
       respective environment variables.  Proxying plain HTTP is supported
       directly, while using a proxy for HTTPS connections requires a suitable
       callback function such as 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(3) returns a CMP message on success, else
       NULL.


SEE ALSO

       OSSL_CMP_CTX_new(3), OSSL_HTTP_proxy_connect(3).


HISTORY

       The OpenSSL CMP support was added in OpenSSL 3.0.


COPYRIGHT

       Copyright 2007-2021 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>.

3.3.2                             2024-09-04  OSSL_CMP_MSG_HTTP_PERFORM(3ossl)

openssl 3.3.2 - Generated Tue Sep 17 08:29:03 CDT 2024
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.