Ignore:
Timestamp:
Apr 23, 2015 10:18:52 AM (9 years ago)
Author:
ming
Message:

Fixed #1846: Update to use 'HIGH' ciphers as default in OpenSSL

File:
1 edited

Legend:

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

    r5076 r5078  
    784784    int j, ret; 
    785785 
    786     if (ssock->param.ciphers_num == 0) 
     786    if (ssock->param.ciphers_num == 0) { 
     787        ret = SSL_set_cipher_list(ssock->ossl_ssl, PJ_SSL_SOCK_OSSL_CIPHERS); 
     788        if (ret < 1) { 
     789            return GET_SSL_STATUS(ssock); 
     790        }     
     791         
    787792        return PJ_SUCCESS; 
     793    } 
    788794 
    789795    pj_strset(&cipher_list, buf, 0); 
     
    806812 
    807813                /* Check buffer size */ 
    808                 if (cipher_list.slen + pj_ansi_strlen(c_name) + 2 > sizeof(buf)) { 
     814                if (cipher_list.slen + pj_ansi_strlen(c_name) + 2 > 
     815                    sizeof(buf)) 
     816                { 
    809817                    pj_assert(!"Insufficient temporary buffer for cipher"); 
    810818                    return PJ_ETOOMANY; 
Note: See TracChangeset for help on using the changeset viewer.