Ai
8 Star 77 Fork 142

OpenHarmony/third_party_openssl
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
OSSL_CMP_MSG_http_perform.pod 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
code4lala 提交于 2023-02-22 15:39 +08:00 . tar -xf openssl-openssl-3.0.7.tar.gz

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_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() 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.

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/third_party_openssl.git
git@gitee.com:openharmony/third_party_openssl.git
openharmony
third_party_openssl
third_party_openssl
master

搜索帮助