TLS ticket key setting callback: this allows and application to set

its own TLS ticket keys.
This commit is contained in:
Dr. Stephen Henson
2008-04-30 16:11:33 +00:00
parent 8831eb7624
commit db533c96e3
6 changed files with 89 additions and 31 deletions

View File

@@ -2255,6 +2255,13 @@ long ssl3_ctx_callback_ctrl(SSL_CTX *ctx, int cmd, void (*fp)(void))
ctx->tlsext_status_cb=(int (*)(SSL *,void *))fp;
break;
case SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB:
ctx->tlsext_ticket_key_cb=(int (*)(SSL *,unsigned char *,
unsigned char *,
EVP_CIPHER_CTX *,
HMAC_CTX *, int))fp;
break;
#endif
default:
return(0);