Closed smanders closed 4 years ago
building openssl (crypto library) with assembly (not using OPENSSL_NO_ASM
) fixes the issue!!
smanders@vip-winbld4 MINGW64 /c/src/externpro/_bldc/externpro_19.11.1-23-g21f3b4d-p-vc141-64/bin (dev)
$ ./curl_7.66.0.exe -k -v https://postman-echo.com/get
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 34.202.227.208:443...
* TCP_NODELAY set
* Connected to postman-echo.com (34.202.227.208) port 443 (#0)
* ALPN, offering http/1.1
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [89 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [4846 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: CN=postman-echo.com
* start date: Oct 7 00:00:00 2019 GMT
* expire date: Nov 7 12:00:00 2020 GMT
* issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
} [5 bytes data]
> GET /get HTTP/1.1
> Host: postman-echo.com
> User-Agent: curl/7.66.0
> Accept: */*
>
{ [5 bytes data]
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=utf-8
< Date: Thu, 19 Dec 2019 00:53:14 GMT
< ETag: W/"b5-GER2xodeizD6YhRDvQQ7mlAMuA8"
< Server: nginx
* Added cookie sails.sid="s%3AFiqEFf-D-ig_0v3s9SNBjvpwE_A17Wum.%2FdyBJjW1slFVlZsXQsee43XE%2BtaaIq71CQL4GOrBIqA" for domain postman-echo.com, path /, expire 0
< set-cookie: sails.sid=s%3AFiqEFf-D-ig_0v3s9SNBjvpwE_A17Wum.%2FdyBJjW1slFVlZsXQsee43XE%2BtaaIq71CQL4GOrBIqA; Path=/; HttpOnly
< Vary: Accept-Encoding
< Content-Length: 181
< Connection: keep-alive
<
{ [181 bytes data]
100 181 100 181 0 0 646 0 --:--:-- --:--:-- --:--:-- 658
* Connection #0 to host postman-echo.com left intact
{"args":{},"headers":{"x-forwarded-proto":"https","host":"postman-echo.com","accept":"*/*","user-agent":"curl/7.66.0","x-forwarded-port":"443"},"url":"https://postman-echo.com/get"}
openssl linker warnings on windows
wp_block.obj : warning LNK4006: whirlpool_block already defined in wp-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
wp_block.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
keccak1600.obj : warning LNK4006: SHA3_absorb already defined in keccak1600-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
keccak1600.obj : warning LNK4006: SHA3_squeeze already defined in keccak1600-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
keccak1600.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
rc4_skey.obj : warning LNK4006: RC4_options already defined in rc4-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
rc4_skey.obj : warning LNK4006: RC4_set_key already defined in rc4-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
rc4_enc.obj : warning LNK4006: RC4 already defined in rc4-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
rc4_enc.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
rand_egd.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
ecp_nistputil.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
ecp_nistp521.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
ecp_nistp256.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
ecp_nistp224.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
chacha_enc.obj : warning LNK4006: ChaCha20_ctr32 already defined in chacha-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
chacha_enc.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
camellia.obj : warning LNK4006: Camellia_Ekeygen already defined in cmll-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
camellia.obj : warning LNK4006: Camellia_EncryptBlock_Rounds already defined in cmll-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
camellia.obj : warning LNK4006: Camellia_DecryptBlock_Rounds already defined in cmll-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
camellia.obj : warning LNK4006: Camellia_EncryptBlock already defined in cmll-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
camellia.obj : warning LNK4006: Camellia_DecryptBlock already defined in cmll-x86_64.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
camellia.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
bn_asm.obj : warning LNK4006: bn_add_words already defined in x86_64-gcc.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
bn_asm.obj : warning LNK4006: bn_div_words already defined in x86_64-gcc.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
bn_asm.obj : warning LNK4006: bn_mul_add_words already defined in x86_64-gcc.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
bn_asm.obj : warning LNK4006: bn_mul_comba4 already defined in x86_64-gcc.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
bn_asm.obj : warning LNK4006: bn_mul_comba8 already defined in x86_64-gcc.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
bn_asm.obj : warning LNK4006: bn_mul_words already defined in x86_64-gcc.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
bn_asm.obj : warning LNK4006: bn_sqr_comba4 already defined in x86_64-gcc.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
bn_asm.obj : warning LNK4006: bn_sqr_comba8 already defined in x86_64-gcc.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
bn_asm.obj : warning LNK4006: bn_sqr_words already defined in x86_64-gcc.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
bn_asm.obj : warning LNK4006: bn_sub_words already defined in x86_64-gcc.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
bn_asm.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
aes_core.obj : warning LNK4006: AES_set_decrypt_key already defined in aes_x86core.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
aes_core.obj : warning LNK4006: AES_set_encrypt_key already defined in aes_x86core.obj; second definition ignored [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
ebcdic.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library [C:\src\externpro\_bldo\xpbase\Build\openssl_1.1.1d_msvc\crypto\crypto.vcxproj]
completed with commits to dev branch referenced above
added add-remove
label since this issue also added the opensslasm project
on Windows, curl fails
using the old version of curl works as expected
the new version of curl on linux also works as expected