error:1012606B:elliptic curve routines:EC_POINT_set_affine_coordinates:point is not on curve
Date: Thu, 28 May 2020 14:57:52 +0800 (CST)
I use https with libcurl static library on imx6ull board. It return "error:1012606B:elliptic curve routines:EC_POINT_set_affine_coordinates:point is not on curve" this error. How can I to do?
Build:
export PATH=/root/perl5/perlbrew/bin:/root/perl5/perlbrew/perls/perl-5.20.1/bin:$PATH
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/share/lib/openssl/lib/pkgconfig:/home/share/lib/zlib/lib/pkgconfig
CPPFLAGS="-I/home/share/lib/openssl/include" LDFLAGS="-L/home/share/lib/openssl/lib" ./configure --with-ssl --host=x86_64-pokysdk-linux --with-zlib --prefix=/home/share/lib/curl
make
make install
Code:
#include <stdio.h>
#include <curl/curl.h>
int main(void)
{
CURL *curl;
CURLcode res;
curl_global_init(CURL_GLOBAL_DEFAULT);
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://www.baidu.com");
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
res = curl_easy_perform(curl);
if(res != CURLE_OK)
fprintf(stderr, "curl_easy_perform() failed: %s\n",
curl_easy_strerror(res));
curl_easy_cleanup(curl);
}
curl_global_cleanup();
return 0;
}
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-28