使用 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 版本 OpenSSL 1.0.2u 2019 年 12 月 20 日

卷曲版本:

#: curl --version curl 7.73.0 (powerpc-ibm-aix6.1.9.0) libcurl/7.73.0 OpenSSL/1.0.2t libssh2/1.9.0 发布日期:2020-10-14 协议: dict 文件 ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 特性:AsynchDNS HTTPS 代理 IPv6 大文件 NTLM NTLM_WB SSL TLS-SRP UnixSockets

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

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)