diff options
author | Adam Langley <agl@chromium.org> | 2014-06-20 23:00:00 +0400 |
---|---|---|
committer | Adam Langley <agl@chromium.org> | 2014-06-21 00:17:33 +0400 |
commit | 1258b6a756674d63f172602d8041ccc0dffd03d1 (patch) | |
tree | a21f01ed557e31f9cda67664dda3d96d0b779da4 /ssl/ssl_sess.c | |
parent | 75872534c2e9f04e762543e44fa93183a76fac22 (diff) |
ChannelID support.
Implement ChannelID as both a client and server.
Diffstat (limited to 'ssl/ssl_sess.c')
-rw-r--r-- | ssl/ssl_sess.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c index 5d8b054c..206f0b1a 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c @@ -1120,4 +1120,15 @@ void SSL_CTX_set_cookie_verify_cb(SSL_CTX *ctx, ctx->app_verify_cookie_cb=cb; } +void SSL_CTX_set_channel_id_cb(SSL_CTX *ctx, + void (*cb)(SSL *ssl, EVP_PKEY **pkey)) + { + ctx->channel_id_cb=cb; + } + +void (*SSL_CTX_get_channel_id_cb(SSL_CTX *ctx))(SSL * ssl, EVP_PKEY **pkey) + { + return ctx->channel_id_cb; + } + IMPLEMENT_PEM_rw(SSL_SESSION, SSL_SESSION, PEM_STRING_SSL_SESSION, SSL_SESSION) |