Add SSL_SESSION_get0_ticket API function.