int ssl3_get_new_session_ticket(SSL *s)
{
    long n;
    int ok;

    n = s->method->ssl_get_message(s,
                                   SSL3_ST_CR_SESSION_TICKET_A,
                                   SSL3_ST_CR_SESSION_TICKET_B,
                                   SSL3_MT_NEWSESSION_TICKET, 16384, &ok);

    if (!ok)
        return ((int)n);

    return tls_process_new_session_ticket(s, (unsigned long)n);
}