Ticket #1960 (closed enhancement: fixed)

Opened 11 months ago

Last modified 6 months ago

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) (diff)

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

comment:1 Changed 6 months ago by ming

  • Description modified (diff)

comment:2 Changed 6 months ago by ming

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

In 5518:

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

comment:3 Changed 6 months ago by ming

  • Description modified (diff)

comment:4 Changed 6 months 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.