<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt">>> I've been happily using the Shining Light 32-bit binaries with both
<br>
>> openssl 1.0 and 1.1 and mingw.</span></font></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>a) Where can we download OpenSSL binaries (x64) for Windows built with MinGW?<br>
</span>
<div>    [ https://slproweb.com/products/Win32OpenSSL.html ]<br>
</div>
<div><br>
</div>
<div>b) D:\Temp-Apps\OpenSSL-Win64\bin>openssl version -a<br>
</div>
<div><br>
</div>
<div>    OpenSSL 1.1.1b  26 Feb 2019<br>
</div>
<div>    built on: Wed Feb 27 02:30:51 2019 UTC<br>
</div>
<div>    platform: VC-WIN64A<br>
</div>
<div>    options:  bn(64,64) rc4(16x,int) des(long) idea(int) blowfish(ptr)<br>
</div>
<div>    compiler: cl /Z7 /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2 -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM
 -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPADLOCK_ASM -DPOLY1305_ASM -D_USING_V110_SDK71_ -D_WINSOCK_DEPRECATED_NO_WARNINGS<br>
</div>
<div>    OPENSSLDIR: "C:\Program Files\Common Files\SSL"<br>
</div>
<div>    ENGINESDIR: "C:\Program Files\OpenSSL\lib\engines-1_1"<br>
</div>
<div>    Seeding source: os-specific<br>
</div>
<div><br>
</div>
<div>     + Paths seem to be hardcoded<br>
</div>
<div><br>
</div>
<div>c) D:\Temp-Apps\OpenSSL-Win64\bin>openssl engine capi -v -t -post list_containers<br>
</div>
<div>    6840:error:25078067:DSO support routines:win32_load:could not load the shared library:crypto\dso\dso_win32.c:107:filename(C:\Program Files\OpenSSL\lib\engines-1_1\capi.dll)<br>
</div>
<div>    6840:error:25070067:DSO support routines:DSO_load:could not load the shared library:crypto\dso\dso_lib.c:162:<br>
</div>
<div>    6840:error:260B6084:engine routines:dynamic_load:dso not found:crypto\engine\eng_dyn.c:414:<br>
</div>
<div>    6840:error:2606A074:engine routines:ENGINE_by_id:no such engine:crypto\engine\eng_list.c:334:id=capi<br>
</div>
<div><br>
</div>
<span>d) Unable to find any .a file within the installation folder (D:\Temp-Apps\OpenSSL-Win64)</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
     <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt">>> On a new machine, I tried the 64-bit binaries.  However, they're
<br>
>> missing the openssl/lib/mingw directory where the .a files resided.</span></font></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt">> Getting back to this:<br>
<br>
> I tried mingw linking against these<br>
<br>
> "c:/program files/openssl64/lib/libcrypto.lib"<br>
> "c:/program files/openssl64/lib/libssl.lib"<br>
<br>
> but the gcc linker failed to find the openssl functions.<br>
<br>
> Anyone have any ideas?<br>
</span></font></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<span>We have been using OpenSSL for Windows (x64) built with MinGW for a long time.<br>
</span>
<div><br>
</div>
<div>> openssl.exe version -a<br>
</div>
<div><br>
</div>
<div>    OpenSSL 1.1.1a  20 Nov 2018<br>
</div>
<div>    built on: Sat Feb 23 14:32:38 2019 UTC<br>
</div>
<div>    platform: mingw64<br>
</div>
<div>    options:  bn(64,64) rc4(16x,int) des(long) idea(int) blowfish(ptr)<br>
</div>
<div>    compiler: gcc.exe -m64 -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -D_WIN32_IE=0x0501 -DPTW32_STATIC_LIB -D__CLEANUP_C -m64 -O2 -pipe -mms-bitfields -fno-builtin -march=core2 -mtune=core2 -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT
 -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DWINVER=0x0501 -D_WIN32_WINNT=0x0501
 -D_WIN32_IE=0x0501 -DPTW32_STATIC_LIB -D__CLEANUP_C -DUNICODE -D_UNICODE -DWIN32_LEAN_AND_MEAN -DOPENSSL_SSL_CLIENT_ENGINE_AUTO=capi -DOPENSSL_CAPIENG_DIALOG -m64 -pipe -mms-bitfields -fno-builtin -march=core2 -mtune=core2 -D_MT -DZLIB -DNDEBUG -I/mingw/include<br>
</div>
<div>    OPENSSLDIR: "\OpenSSL"<br>
</div>
<div>    ENGINESDIR: "\OpenSSL\lib\engines-1_1"<br>
</div>
<div>    Seeding source: os-specific<br>
</div>
<div><br>
</div>
<div>> openssl engine<br>
</div>
<div>    (rdrand) Intel RDRAND engine<br>
</div>
<div>    (dynamic) Dynamic engine loading support<br>
</div>
<div>    (padlock) VIA PadLock (no-RNG, no-ACE)<br>
</div>
<div>    (capi) CryptoAPI ENGINE<br>
</div>
<div><br>
</div>
<div>@Ken: this seems to be a quite old thread, but if you need either the include files or the .a files<br>
</div>
<div><span>      or both, we could email them to you.</span></div>
<div><br>
</div>
<div>Regards.</div>
</body>
</html>