summaryrefslogtreecommitdiffstats
path: root/ssl/s3_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-04-30 16:11:33 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-04-30 16:11:33 +0000
commitdb533c96e35ccdb8f97f0e5e98ab9db9c4938ca1 (patch)
treec1f1d11c3ad840a17626e453cec54c5e10cf970d /ssl/s3_lib.c
parent8831eb7624992ded000310586c99cf6f226a6e19 (diff)
TLS ticket key setting callback: this allows and application to set
its own TLS ticket keys.
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r--ssl/s3_lib.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
index 06e454c96b..bdbcd44f27 100644
--- a/ssl/s3_lib.c
+++ b/ssl/s3_lib.c
@@ -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);