Changeset 5076
- Timestamp:
- Apr 23, 2015 2:42:49 AM (10 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/config.h
r5064 r5076 862 862 #ifndef PJ_HAS_SSL_SOCK 863 863 # define PJ_HAS_SSL_SOCK 0 864 #endif 865 866 867 /** 868 * Define the maximum number of ciphers supported by the secure socket. 869 * 870 * Default: 256 871 */ 872 #ifndef PJ_SSL_SOCK_MAX_CIPHERS 873 # define PJ_SSL_SOCK_MAX_CIPHERS 256 864 874 #endif 865 875 -
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r5074 r5076 40 40 #define DELAYED_CLOSE_TIMEOUT 200 41 41 42 /* Maximum ciphers */43 #define MAX_CIPHERS 10044 45 42 /* 46 43 * Include OpenSSL headers … … 297 294 pj_ssl_cipher id; 298 295 const char *name; 299 } openssl_ciphers[ MAX_CIPHERS];296 } openssl_ciphers[PJ_SSL_SOCK_MAX_CIPHERS]; 300 297 301 298 /* OpenSSL application data index */ … … 346 343 347 344 ctx=SSL_CTX_new(meth); 348 SSL_CTX_set_cipher_list(ctx, "ALL ");345 SSL_CTX_set_cipher_list(ctx, "ALL:COMPLEMENTOFALL"); 349 346 350 347 ssl = SSL_new(ctx); … … 793 790 794 791 /* 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"); 796 793 797 794 /* Generate user specified cipher list in OpenSSL format */ -
pjproject/trunk/pjlib/src/pjlib-test/ssl_sock.c
r4537 r5076 41 41 static int get_cipher_list(void) { 42 42 pj_status_t status; 43 pj_ssl_cipher ciphers[ 100];43 pj_ssl_cipher ciphers[PJ_SSL_SOCK_MAX_CIPHERS]; 44 44 unsigned cipher_num; 45 45 unsigned i; -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_config.c
r5065 r5076 1217 1217 1218 1218 if (pj_ssl_cipher_is_supported(cipher)) { 1219 static pj_ssl_cipher tls_ciphers[ 128];1219 static pj_ssl_cipher tls_ciphers[PJ_SSL_SOCK_MAX_CIPHERS]; 1220 1220 1221 1221 tls_ciphers[cfg->udp_cfg.tls_setting.ciphers_num++] = cipher; 1222 1222 cfg->udp_cfg.tls_setting.ciphers = tls_ciphers; 1223 1223 } else { 1224 pj_ssl_cipher ciphers[ 128];1224 pj_ssl_cipher ciphers[512]; 1225 1225 unsigned j, ciphers_cnt; 1226 1226 -
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r4887 r5076 1453 1453 { 1454 1454 #if PJ_HAS_SSL_SOCK 1455 pj_ssl_cipher ciphers[ 64];1455 pj_ssl_cipher ciphers[PJ_SSL_SOCK_MAX_CIPHERS]; 1456 1456 unsigned count = PJ_ARRAY_SIZE(ciphers); 1457 1457
Note: See TracChangeset
for help on using the changeset viewer.