Ignore:
Timestamp:
Feb 25, 2010 11:58:19 AM (14 years ago)
Author:
nanang
Message:

More ticket #1032:

  • Updated transport state notification callback to return void.
  • Updated transport state enum to only contain connected and disconnected, no more bitmask value.
  • Added direction field to SIP transport.
  • Removed remote hostname hash from transport key.
  • Updated cert info dump to return -1 when buffer is insufficient.
  • Added new error code PJSIP_TLS_ECERTVERIF.
  • Updated get_cert_name() in ssl_sock_symbian.c to use heap buffer instead of stack.
  • Minors, e.g: added prefix PJ in cipher types, docs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_transport_tls.h

    r3106 r3110  
    123123 
    124124    /** 
    125      * Specifies the action when verification of server TLS certificate 
    126      * resulting errors: 
     125     * Specifies TLS transport behavior on the server TLS certificate  
     126     * verification result: 
    127127     * - If \a verify_server is disabled (set to PJ_FALSE), TLS transport  
    128128     *   will just notify the application via #pjsip_tp_state_callback with 
    129      *   state (PJSIP_TP_STATE_CONNECTED | PJSIP_TP_STATE_TLS_VERIF_ERROR) 
    130      *   whenever there is any TLS verification error, the return value of  
    131      *   the callback will be used to decide whether transport should be  
    132      *   shutdown. 
     129     *   state PJSIP_TP_STATE_CONNECTED regardless TLS verification result. 
    133130     * - If \a verify_server is enabled (set to PJ_TRUE), TLS transport  
    134131     *   will be shutdown and application will be notified with state 
    135      *   (PJSIP_TP_STATE_DISCONNECTED | PJSIP_TP_STATE_TLS_VERIF_ERROR) 
    136      *   whenever there is any TLS verification error. 
    137      * 
    138      * When the verification resulting success, application will be notified 
    139      * via #pjsip_tp_state_callback with state PJSIP_TP_STATE_CONNECTED. 
     132     *   PJSIP_TP_STATE_DISCONNECTED whenever there is any TLS verification 
     133     *   error, otherwise PJSIP_TP_STATE_CONNECTED will be notified. 
     134     * 
     135     * In any cases, application can inspect #pjsip_tls_state_info in the 
     136     * callback to see the verification detail. 
    140137     * 
    141138     * Default value is PJ_FALSE. 
     
    144141 
    145142    /** 
    146      * Specifies the action when verification of server TLS certificate 
    147      * resulting errors: 
     143     * Specifies TLS transport behavior on the client TLS certificate  
     144     * verification result: 
    148145     * - If \a verify_client is disabled (set to PJ_FALSE), TLS transport  
    149146     *   will just notify the application via #pjsip_tp_state_callback with 
    150      *   state (PJSIP_TP_STATE_ACCEPTED | PJSIP_TP_STATE_TLS_VERIF_ERROR) 
    151      *   whenever there is any TLS verification error, the return value of  
    152      *   the callback will be used to decide whether transport should be  
    153      *   shutdown. 
     147     *   state PJSIP_TP_STATE_CONNECTED regardless TLS verification result. 
    154148     * - If \a verify_client is enabled (set to PJ_TRUE), TLS transport  
    155149     *   will be shutdown and application will be notified with state 
    156      *   (PJSIP_TP_STATE_REJECTED | PJSIP_TP_STATE_TLS_VERIF_ERROR) 
    157      *   whenever there is any TLS verification error. 
    158      * 
    159      * When the verification resulting success, application will be notified 
    160      * via #pjsip_tp_state_callback with state PJSIP_TP_STATE_ACCEPTED. 
     150     *   PJSIP_TP_STATE_DISCONNECTED whenever there is any TLS verification 
     151     *   error, otherwise PJSIP_TP_STATE_CONNECTED will be notified. 
     152     * 
     153     * In any cases, application can inspect #pjsip_tls_state_info in the 
     154     * callback to see the verification detail. 
    161155     * 
    162156     * Default value is PJ_FALSE. 
     
    166160    /** 
    167161     * When acting as server (incoming TLS connections), reject inocming 
    168      * connection if client doesn't have a valid certificate. 
     162     * connection if client doesn't supply a TLS certificate. 
    169163     * 
    170164     * This setting corresponds to SSL_VERIFY_FAIL_IF_NO_PEER_CERT flag. 
     
    210204 
    211205/** 
    212  * This structure defines transport state extended info specifically for 
    213  * TLS transport. 
     206 * This structure defines TLS transport extended info in <tt>ext_info</tt> 
     207 * field of #pjsip_transport_state_info for the transport state notification 
     208 * callback #pjsip_tp_state_callback. 
    214209 */ 
    215210typedef struct pjsip_tls_state_info 
Note: See TracChangeset for help on using the changeset viewer.