Ignore:
Timestamp:
Mar 25, 2019 1:33:12 AM (5 years ago)
Author:
ming
Message:

Fixed #2185: Darwin (Mac OS & iOS) native SSL backend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/ssl_sock.c

    r5950 r5957  
    2323 
    2424#define CERT_DIR                    "../build/" 
    25 #define CERT_CA_FILE                CERT_DIR "cacert.pem" 
     25#if (PJ_SSL_SOCK_IMP == PJ_SSL_SOCK_IMP_DARWIN) 
     26/* If we use Darwin SSL, use the cert in DER format. */ 
     27#   define CERT_CA_FILE             CERT_DIR "cacert.der" 
     28#else 
     29#   define CERT_CA_FILE             CERT_DIR "cacert.pem" 
     30#endif 
    2631#define CERT_FILE                   CERT_DIR "cacert.pem" 
    2732#define CERT_PRIVKEY_FILE           CERT_DIR "privkey.pem" 
     
    888893        pj_str_t privkey_pass = pj_str(CERT_PRIVKEY_PASS); 
    889894 
     895#if (PJ_SSL_SOCK_IMP == PJ_SSL_SOCK_IMP_DARWIN) 
     896        PJ_LOG(3, ("", "Darwin SSL requires the private key to be " 
     897                       "inside the Keychain. So double click on " 
     898                       "the file pjlib/build/privkey.p12 to " 
     899                       "place it in the Keychain. " 
     900                       "The password is \"pjsip\".")); 
     901#endif 
     902 
    890903#if (defined(TEST_LOAD_FROM_FILES) && TEST_LOAD_FROM_FILES==1) 
    891904        status = pj_ssl_cert_load_from_files(pool, &ca_file, &cert_file,  
Note: See TracChangeset for help on using the changeset viewer.