Changeset 3455 for pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
- Timestamp:
- Mar 16, 2011 7:34:16 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r3225 r3455 268 268 /* OpenSSL library initialization counter */ 269 269 static int openssl_init_count; 270 static int openssl_reg_strerr;271 270 272 271 /* OpenSSL available ciphers */ … … 281 280 static pj_status_t init_openssl(void) 282 281 { 282 pj_status_t status; 283 283 284 if (openssl_init_count) 284 285 return PJ_SUCCESS; … … 287 288 288 289 /* Register error subsystem */ 289 if (!openssl_reg_strerr) { 290 pj_status_t status; 291 292 openssl_reg_strerr = 1; 293 status = pj_register_strerror(PJ_SSL_ERRNO_START, 294 PJ_SSL_ERRNO_SPACE_SIZE, 295 &ssl_strerror); 296 pj_assert(status == PJ_SUCCESS); 297 } 290 status = pj_register_strerror(PJ_SSL_ERRNO_START, 291 PJ_SSL_ERRNO_SPACE_SIZE, 292 &ssl_strerror); 293 pj_assert(status == PJ_SUCCESS); 298 294 299 295 /* Init OpenSSL lib */
Note: See TracChangeset
for help on using the changeset viewer.