Changeset 5483 for pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
- Timestamp:
- Nov 16, 2016 5:53:23 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r5472 r5483 53 53 #include <openssl/engine.h> 54 54 55 #if !defined(OPENSSL_NO_EC)55 #if defined(PJ_SSL_SOCK_OSSL_HAS_EC) && PJ_SSL_SOCK_OSSL_HAS_EC==1 56 56 extern int tls1_ec_nid2curve_id(int nid); 57 57 extern int tls1_ec_curve_id2nid(int curve_id); … … 386 386 ssl->session = SSL_SESSION_new(); 387 387 388 #if !defined(OPENSSL_NO_EC)388 #if defined(PJ_SSL_SOCK_OSSL_HAS_EC) && PJ_SSL_SOCK_OSSL_HAS_EC==1 389 389 openssl_curves_num = SSL_get_shared_curve(ssl,-1); 390 390 if (openssl_curves_num > PJ_ARRAY_SIZE(openssl_curves)) … … 1000 1000 static pj_status_t set_curves_list(pj_ssl_sock_t *ssock) 1001 1001 { 1002 #if !defined(OPENSSL_NO_EC)1002 #if defined(PJ_SSL_SOCK_OSSL_HAS_EC) && PJ_SSL_SOCK_OSSL_HAS_EC==1 1003 1003 int ret; 1004 1004 int curves[PJ_SSL_SOCK_MAX_CURVES]; … … 1023 1023 return GET_SSL_STATUS(ssock); 1024 1024 } 1025 #endif 1025 1026 1026 1027 return PJ_SUCCESS; 1027 #else1028 return PJ_ENOTSUP;1029 #endif1030 1028 } 1031 1029 1032 1030 static pj_status_t set_sigalgs(pj_ssl_sock_t *ssock) 1033 1031 { 1032 #if defined(PJ_SSL_SOCK_OSSL_HAS_SIGALG) && PJ_SSL_SOCK_OSSL_HAS_SIGALG==1 1034 1033 int ret; 1035 1034 … … 1046 1045 return GET_SSL_STATUS(ssock); 1047 1046 } 1047 #endif 1048 1048 1049 1049 return PJ_SUCCESS; … … 2394 2394 2395 2395 for (i = 0; i < *curve_num; ++i) 2396 2396 curves[i] = openssl_curves[i].id; 2397 2397 2398 2398 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.