Ignore:
Timestamp:
Mar 9, 2017 4:41:45 AM (5 years ago)
Author:
riza
Message:

Re #1994 (misc): Fix linker error on Visual Studio when using OpenSSL 1.1 or newer.
Thanks to Sean Bright for the report and patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c

    r5565 r5566  
    124124 
    125125#ifdef _MSC_VER 
    126 #  pragma comment( lib, "libeay32") 
    127 #  pragma comment( lib, "ssleay32") 
    128 #  pragma comment( lib, "crypt32") 
     126#  if OPENSSL_VERSION_NUMBER >= 0x10100000L 
     127#    pragma comment(lib, "libcrypto") 
     128#    pragma comment(lib, "libssl") 
     129#  else 
     130#    pragma comment(lib, "libeay32") 
     131#    pragma comment(lib, "ssleay32") 
     132#  endif 
    129133#endif 
    130134 
Note: See TracChangeset for help on using the changeset viewer.