Changeset 4829 for pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
- Timestamp:
- Apr 30, 2014 8:21:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r4624 r4829 1889 1889 } 1890 1890 1891 /* Get cipher identifier */ 1892 PJ_DEF(pj_ssl_cipher) pj_ssl_cipher_id(const char *cipher_name) 1893 { 1894 unsigned i; 1895 1896 if (openssl_cipher_num == 0) { 1897 init_openssl(); 1898 shutdown_openssl(); 1899 } 1900 1901 for (i = 0; i < openssl_cipher_num; ++i) { 1902 if (!pj_ansi_stricmp(openssl_ciphers[i].name, cipher_name)) 1903 return openssl_ciphers[i].id; 1904 } 1905 1906 return PJ_TLS_UNKNOWN_CIPHER; 1907 } 1908 1891 1909 /* Check if the specified cipher is supported by SSL/TLS backend. */ 1892 1910 PJ_DEF(pj_bool_t) pj_ssl_cipher_is_supported(pj_ssl_cipher cipher)
Note: See TracChangeset
for help on using the changeset viewer.