vmime icon indicating copy to clipboard operation
vmime copied to clipboard

Do not work with OpenSSL (>=1.1.0)

Open designerror opened this issue 9 years ago • 5 comments

I build latest version of OpenSSL using the following script:

> set INSTALL_PREFIX=D:\workspace\webdav-client-cpp\build
> cd git clone https://github.com/openssl/openssl
> cd openssl
> mkdir build && cd build
> perl ..\Configure VC-WIN64A no-asm no-idea no-unit-test no-shared --prefix=%INSTALL_PREFIX% --openssldir=%INSTALL_PREFIX%\ssl
> nmake
> nmake install

I try to build vmime with latest version OpenSSL using the following script:

> cmake .. \
 -DVMIME_BUILD_SHARED_LIBRARY=OFF \
 -DVMIME_BUILD_STATIC_LIBRARY=ON \
 -DVMIME_TLS_SUPPORT_LIB="openssl" \
 -DVMIME_CHARSETCONV_LIB="win" \
 -DCMAKE_BUILD_TYPE="Debug" \
 -DVMIME_BUILD_SAMPLES=OFF \
 -DVMIME_HAVE_SASL_SUPPORT=OFF \
 -DVMIME_SHARED_PTR_USE_CXX=ON \
 -DVMIME_SHARED_PTR_USE_BOOST=OFF \
 -DVMIME_HAVE_MESSAGING_PROTO_SENDMAIL=OFF \
 -DVMIME_BUILD_DOCUMENTATION=OFF \
 -DOPENSSL_INCLUDE_DIR="D:\workspace\webdav-client-cpp\build\include" \
 -DOPENSSL_LIBRARIES="D:\workspace\webdav-client-cpp\build\lib\libcrypto.lib;D:\workspace\webdav-client-cpp\build\lib\libssl.lib"
> nmake

In result I obtain the next log: build_vmime_with_openssl

If I use prebuild binaries (Win64OpenSSL-1_1_0b.exe) from Shining Light Productions and the the following script:

> cmake .. \
 -DVMIME_BUILD_SHARED_LIBRARY=OFF \
 -DVMIME_BUILD_STATIC_LIBRARY=ON \
 -DVMIME_TLS_SUPPORT_LIB="openssl" \
 -DVMIME_CHARSETCONV_LIB="win" \
 -DCMAKE_BUILD_TYPE="Debug" \
 -DVMIME_BUILD_SAMPLES=OFF \ 
 -DVMIME_HAVE_SASL_SUPPORT=OFF \
 -DVMIME_SHARED_PTR_USE_CXX=ON \
 -DVMIME_SHARED_PTR_USE_BOOST=OFF \
 -DVMIME_HAVE_MESSAGING_PROTO_SENDMAIL=OFF \
 -DVMIME_BUILD_DOCUMENTATION=OFF 
> nmake

In result I obtain the next log: build_vmime_with_prebuild_openssl

designerror avatar Oct 19 '16 08:10 designerror

What version of the OpenSSL do you use ?

designerror avatar Oct 19 '16 09:10 designerror

I will try to use OpenSSL with version 1_0_1, how it described here from issue #127.

designerror avatar Oct 19 '16 10:10 designerror

OpenSSL version 1_0_1, all is well.

designerror avatar Oct 19 '16 10:10 designerror

Please add information about the OpenSSL version in your documentation.

designerror avatar Oct 19 '16 10:10 designerror

For Ubuntu with OpenSSL version (>=1.1.0) similarity:

screenshot from 2016-10-19 06-50-06

designerror avatar Oct 19 '16 12:10 designerror