/* SSL3_ST_SW_CERT_B */
return(ssl3_do_write(s,SSL3_RT_HANDSHAKE));
}
-#ifndef OPENSSLP_NO_TLSEXT
+#ifndef OPENSSL_NO_TLSEXT
int ssl3_send_newsession_ticket(SSL *s)
{
if (s->state == SSL3_ST_SW_SESSION_TICKET_A)
/* Check key name matches */
if (memcmp(etick, s->ctx->tlsext_tick_key_name, 16))
goto tickerr;
-fprintf(stderr, "Ticket match OK\n");
/* Check HMAC of encrypted ticket */
HMAC_CTX_init(&hctx);
HMAC_Init_ex(&hctx, s->ctx->tlsext_tick_hmac_key, 16,
HMAC_CTX_cleanup(&hctx);
if (memcmp(tick_hmac, etick + eticklen, mlen))
goto tickerr;
-fprintf(stderr, "HMAC match OK\n");
/* Set p to start of IV */
p = etick + 16;
EVP_CIPHER_CTX_init(&ctx);
EVP_DecryptUpdate(&ctx, sdec, &slen, p, eticklen);
if (EVP_DecryptFinal(&ctx, sdec + slen, &mlen) <= 0)
goto tickerr;
-fprintf(stderr, "Decrypt OK\n");
slen += mlen;
EVP_CIPHER_CTX_cleanup(&ctx);
p = sdec;
s->tlsext_ticket_expected = 1;
return 0;
}
-
#endif