首页 > 解决方案 > 使用 libcurl 调用 REST API 时的问题

问题描述

我们正在使用 C 开发应用程序来调用一些 REST API。我们有以下错误:

0x0900000006567214  ssl3_new() + 0x34
0x090000000658abb8  tls1_new() + 0x18
0x09000000150f7f50  SSL_CTX_check_private_key() + 0x68
0x0900000014d6831c  ossl_connect_step1(??, ??) + 0xaec
0x0900000014d696a4  ossl_connect_common(??, ??, ??, ??) + 0x184
0x0900000014d60858  Curl_ssl_connect_nonblocking(??, ??, ??) + 0x9c
0x0900000014d773bc  https_connecting(??, ??) + 0x20
0x0900000014d79214  Curl_http_connect(??, ??) + 0x168
0x0900000014d71738  multi_runsingle(??, ??, ??) + 0x608
0x0900000014d72cf4  curl_multi_perform(??, ??) + 0xf4
0x0900000014d5e0f8  curl_easy_perform(??) + 0x158

OpenSSL 的版本是:#: openssl version OpenSSL 1.0.2u 20 Dec 2019

卷曲版本:

#: curl --version curl 7.73.0 (powerpc-ibm-aix6.1.9.0) libcurl/7.73.0 OpenSSL/1.0.2t libssh2/1.9.0 Release-Date: 2020-10-14 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 特性:AsynchDNS HTTPS-proxy IPv6 Largefile NTLM NTLM_WB SSL TLS-SRP UnixSockets

我们怀疑应该使用的 SSL 协议版本存在问题。如果您遇到此类错误,请告诉我们。

标签: libcurl

解决方案


推荐阅读