Changeset 6004 for pjproject/trunk/pjlib/include/pj/ssl_sock.h
- Timestamp:
- May 24, 2019 3:32:17 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/ssl_sock.h
r5938 r6004 299 299 const char *error_strings[], 300 300 unsigned *count); 301 302 /** 303 * Wipe out the keys in the SSL certificate. 304 * 305 * @param cert The SSL certificate. 306 * 307 */ 308 PJ_DECL(void) pj_ssl_cert_wipe_keys(pj_ssl_cert_t *cert); 301 309 302 310 … … 1050 1058 1051 1059 /** 1060 * The parameter for pj_ssl_sock_start_connect2(). 1061 */ 1062 typedef struct pj_ssl_start_connect_param { 1063 /** 1064 * The pool to allocate some internal data for the operation. 1065 */ 1066 pj_pool_t *pool; 1067 1068 /** 1069 * Local address. 1070 */ 1071 const pj_sockaddr_t *localaddr; 1072 1073 /** 1074 * Port range for socket binding, relative to the start port number 1075 * specified in \a localaddr. This is only applicable when the start port 1076 * number is non zero. 1077 */ 1078 pj_uint16_t local_port_range; 1079 1080 /** 1081 * Remote address. 1082 */ 1083 const pj_sockaddr_t *remaddr; 1084 1085 /** 1086 * Length of buffer containing above addresses. 1087 */ 1088 int addr_len; 1089 1090 } pj_ssl_start_connect_param; 1091 1092 1093 /** 1052 1094 * Initialize the secure socket parameters for its creation with 1053 1095 * the default values. … … 1369 1411 int addr_len); 1370 1412 1413 /** 1414 * Same as #pj_ssl_sock_start_connect(), but application can provide a 1415 * \a port_range parameter, which will be used to bind the socket to 1416 * random port. 1417 * 1418 * @param ssock The secure socket. 1419 * 1420 * @param connect_param The parameter, refer to \a pj_ssl_start_connect_param. 1421 * 1422 * @return PJ_SUCCESS if connection can be established immediately 1423 * or PJ_EPENDING if connection cannot be established 1424 * immediately. In this case the \a on_connect_complete() 1425 * callback will be called when connection is complete. 1426 * Any other return value indicates error condition. 1427 */ 1428 PJ_DECL(pj_status_t) pj_ssl_sock_start_connect2( 1429 pj_ssl_sock_t *ssock, 1430 pj_ssl_start_connect_param *connect_param); 1371 1431 1372 1432 /** … … 1386 1446 PJ_DECL(pj_status_t) pj_ssl_sock_renegotiate(pj_ssl_sock_t *ssock); 1387 1447 1388 1389 1448 /** 1390 1449 * @}
Note: See TracChangeset
for help on using the changeset viewer.