Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#1960 closed enhancement (fixed)

Export SIP transport TLS state and TLS certificate info to PJSUA2

Reported by: nanang Owned by: bennylp
Priority: normal Milestone: release-2.6
Component: pjsua2 Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description (last modified by ming)

The ticket will provide the TLS transport information via the existing Endpoint::onTransportState() callback. This way, application can check the SSL certificate information in PJSUA2 and decide to keep the transport or close it by calling Endpoint::transportShutdown().

The following will be implemented in this ticket:

  • TlsInfo structure, corresponding to pjsip_tls_state_info and pj_ssl_sock_info
  • SslCertInfo structure, corresponding to pj_ssl_cert_info
  • field TlsInfo.cipherName, containing the information from pj_ssl_cipher_name() of pj_ssl_sock_info.cipher
  • field TlsInfo.verifyMsgs, containing the information from pj_ssl_cert_get_verify_status_strings() of pj_ssl_sock_info.verify_status
  • API Endpoint::transportShutdown, corresponding to pjsip_transport_shutdown()

Change History (4)

comment:1 Changed 7 years ago by ming

  • Description modified (diff)

comment:2 Changed 7 years ago by ming

  • Resolution set to fixed
  • Status changed from new to closed

In 5518:

Fixed #1960: Export SIP transport TLS state and TLS certificate info to PJSUA2

comment:3 Changed 7 years ago by ming

  • Description modified (diff)

comment:4 Changed 7 years ago by ming

In 5522:

Re #1960: Use boolean field to indicate whether the info is empty (instead of relying on bzero and memcmp)

Note: See TracTickets for help on using tickets.