Ignore:
Timestamp:
Aug 1, 2017 7:49:34 AM (7 years ago)
Author:
nanang
Message:

Misc (re #1994): Fixed compile warnings on MSVC 2005 & 2015.

File:
1 edited

Legend:

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

    r5631 r5635  
    116116#  define M_ASN1_STRING_data(x)     ASN1_STRING_get0_data(x) 
    117117#  define M_ASN1_STRING_length(x)   ASN1_STRING_length(x) 
    118 #  define X509_get_notBefore(x)     X509_get0_notBefore(x) 
    119 #  define X509_get_notAfter(x)      X509_get0_notAfter(x) 
     118#  if defined(OPENSSL_API_COMPAT) && OPENSSL_API_COMPAT >= 0x10100000L 
     119#     define X509_get_notBefore(x)  X509_get0_notBefore(x) 
     120#     define X509_get_notAfter(x)   X509_get0_notAfter(x) 
     121#  endif 
    120122#else 
    121123#  define SSL_CIPHER_get_id(c)      (c)->id 
     
    133135#    pragma comment(lib, "ssleay32") 
    134136#  endif 
     137#  define strerror_r(errno,buf,len) strerror_s(buf,len,errno) 
    135138#endif 
    136139 
Note: See TracChangeset for help on using the changeset viewer.