Ignore:
Timestamp:
Apr 23, 2015 2:42:49 AM (9 years ago)
Author:
ming
Message:

Fixed #1845: Add support if OpenSSL library has more than 100 cipher suites

File:
1 edited

Legend:

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

    r5074 r5076  
    4040#define DELAYED_CLOSE_TIMEOUT   200 
    4141 
    42 /* Maximum ciphers */ 
    43 #define MAX_CIPHERS             100 
    44  
    4542/*  
    4643 * Include OpenSSL headers  
     
    297294    pj_ssl_cipher    id; 
    298295    const char      *name; 
    299 } openssl_ciphers[MAX_CIPHERS]; 
     296} openssl_ciphers[PJ_SSL_SOCK_MAX_CIPHERS]; 
    300297 
    301298/* OpenSSL application data index */ 
     
    346343 
    347344        ctx=SSL_CTX_new(meth); 
    348         SSL_CTX_set_cipher_list(ctx, "ALL"); 
     345        SSL_CTX_set_cipher_list(ctx, "ALL:COMPLEMENTOFALL"); 
    349346 
    350347        ssl = SSL_new(ctx); 
     
    793790 
    794791    /* Set SSL with ALL available ciphers */ 
    795     SSL_set_cipher_list(ssock->ossl_ssl, "ALL"); 
     792    SSL_set_cipher_list(ssock->ossl_ssl, "ALL:COMPLEMENTOFALL"); 
    796793 
    797794    /* Generate user specified cipher list in OpenSSL format */ 
Note: See TracChangeset for help on using the changeset viewer.