Changeset 5083


Ignore:
Timestamp:
May 5, 2015 6:41:17 AM (6 years ago)
Author:
nanang
Message:

Misc (re #1843): Fixed compile warnings on pjlib SSL socket with BoringSSL backend (thanks Alexander Traud for the patch).

File:
1 edited

Legend:

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

    r5080 r5083  
    319319    SSL_library_init(); 
    320320    SSL_load_error_strings(); 
     321#if OPENSSL_VERSION_NUMBER < 0x009080ffL 
     322    /* This is now synonym of SSL_library_init() */ 
    321323    OpenSSL_add_all_algorithms(); 
     324#endif 
    322325 
    323326    /* Init available ciphers */ 
     
    353356 
    354357        for (i = 0; i < n; ++i) { 
    355             SSL_CIPHER *c; 
     358            const SSL_CIPHER *c; 
    356359            c = sk_SSL_CIPHER_value(sk_cipher,i); 
    357360            openssl_ciphers[i].id = (pj_ssl_cipher) 
     
    814817    for (i = 0; i < ssock->param.ciphers_num; ++i) { 
    815818        for (j = 0; j < sk_SSL_CIPHER_num(sk_cipher); ++j) { 
    816             SSL_CIPHER *c; 
     819            const SSL_CIPHER *c; 
    817820            c = sk_SSL_CIPHER_value(sk_cipher, j); 
    818821            if (ssock->param.ciphers[i] == (pj_ssl_cipher) 
Note: See TracChangeset for help on using the changeset viewer.