Ignore:
Timestamp:
Dec 11, 2015 4:59:56 AM (8 years ago)
Author:
ming
Message:

Fixed #1901: crash when async_cnt is set to a value greater than one for SIP TLS transport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/ssl_sock.h

    r5087 r5214  
    865865 
    866866/** 
     867 * Duplicate pj_ssl_sock_param. 
     868 * 
     869 * @param pool  Pool to allocate memory. 
     870 * @param dst   Destination parameter. 
     871 * @param src   Source parameter. 
     872 */ 
     873PJ_DECL(void) pj_ssl_sock_param_copy(pj_pool_t *pool,  
     874                                     pj_ssl_sock_param *dst, 
     875                                     const pj_ssl_sock_param *src); 
     876 
     877 
     878/** 
    867879 * Create secure socket instance. 
    868880 * 
     
    11161128 
    11171129/** 
     1130 * Same as #pj_ssl_sock_start_accept(), but application can provide 
     1131 * a secure socket parameter, which will be used to create a new secure 
     1132 * socket reported in \a on_accept_complete() callback when there is 
     1133 * an incoming connection. 
     1134 * 
     1135 * @param ssock         The secure socket. 
     1136 * @param pool          Pool used to allocate some internal data for the 
     1137 *                      operation. 
     1138 * @param localaddr     Local address to bind on. 
     1139 * @param addr_len      Length of buffer containing local address. 
     1140 * @param newsock_param Secure socket parameter for new accepted sockets. 
     1141 * 
     1142 * @return              PJ_SUCCESS if the operation has been successful, 
     1143 *                      or the appropriate error code on failure. 
     1144 */ 
     1145PJ_DECL(pj_status_t) 
     1146pj_ssl_sock_start_accept2(pj_ssl_sock_t *ssock, 
     1147                          pj_pool_t *pool, 
     1148                          const pj_sockaddr_t *local_addr, 
     1149                          int addr_len, 
     1150                          const pj_ssl_sock_param *newsock_param); 
     1151 
     1152 
     1153/** 
    11181154 * Starts asynchronous socket connect() operation and SSL/TLS handshaking  
    11191155 * for this socket. Once the connection is done (either successfully or not), 
Note: See TracChangeset for help on using the changeset viewer.