diff options
author | raja-ashok <rashok.svks@gmail.com> | 2019-07-28 13:23:00 +0530 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-08-01 11:38:52 +1000 |
commit | 59b2cb2638dda3e07385ad36a41f0e141b36987b (patch) | |
tree | aa1af02580172734fa3b348f0f73db4f67bb498d /ssl/statem | |
parent | 0c789f59f117ccbb30ffc621216ba776117c7c61 (diff) |
Use allow_early_data_cb from SSL instead of SSL_CTX
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9471)
Diffstat (limited to 'ssl/statem')
-rw-r--r-- | ssl/statem/extensions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/statem/extensions.c b/ssl/statem/extensions.c index 4941da3ede..7c1759312f 100644 --- a/ssl/statem/extensions.c +++ b/ssl/statem/extensions.c @@ -1645,9 +1645,9 @@ static int final_early_data(SSL *s, unsigned int context, int sent) || s->early_data_state != SSL_EARLY_DATA_ACCEPTING || !s->ext.early_data_ok || s->hello_retry_request != SSL_HRR_NONE - || (s->ctx->allow_early_data_cb != NULL - && !s->ctx->allow_early_data_cb(s, - s->ctx->allow_early_data_cb_data))) { + || (s->allow_early_data_cb != NULL + && !s->allow_early_data_cb(s, + s->allow_early_data_cb_data))) { s->ext.early_data = SSL_EARLY_DATA_REJECTED; } else { s->ext.early_data = SSL_EARLY_DATA_ACCEPTED; |