分别编译libcurl和OpenSSL,和用OpenSSL编译libcurl一样吗?

Compiled libcurl and OpenSSL separately, is it the same as compiling libcurl with OpenSSL?

所以,我整理了以下内容:

libcurl: x86/debug, x86/release, x64/debug, x64/release

OpenSSL: x86/debug, x86/release, x64/debug, x64/release

现在,我已经为所有包含 libcurl 和 OpenSSL 的配置设置 visual studio。

我看到有人提到用 OpenSSL 编译 libcurl。跟我做的一样吗?

顺便说一句,如果我 运行 这个:

#define CURL_STATICLIB
#include <stdio.h>
#include <curl/curl.h>
#include <iostream>

int main(void)
{
    curl_version_info_data* vinfo = curl_version_info(CURLVERSION_NOW);
    if (vinfo->features & CURL_VERSION_SSL)
        std::cout << "yes" << std::endl;
    else
        std::cout << "no" << std::endl;
    return 0;
}

输出:

yes

如果我想使用支持 SSL 的 libcurl,这是否意味着我的设置很好?

此外,如果顺序很重要,我先编译 libcurl,然后再编译 OpenSSL。

平台:Windows

工具链:VC++

在 Windows 上构建 libcurl 时根本不需要 OpenSSL。

libcurl 在 Windows.

上构建时默认使用 Schannel(WinCNG、Windows 原生加密)

如果 CURL_VERSION_SSL 正在报告 true,那么 SSL 支持已正确启用。