diff options
author | miod <> | 2014-07-11 15:44:53 +0000 |
---|---|---|
committer | miod <> | 2014-07-11 15:44:53 +0000 |
commit | 687488572f223f89cf98909e87b4d1a3fbb14bfd (patch) | |
tree | 856cb15294967bd0ee494f35ae3430f53816a18a /src/lib | |
parent | 6cdb48c68b6343b145942412ab1c819a6f8387af (diff) | |
download | openbsd-687488572f223f89cf98909e87b4d1a3fbb14bfd.tar.gz openbsd-687488572f223f89cf98909e87b4d1a3fbb14bfd.tar.bz2 openbsd-687488572f223f89cf98909e87b4d1a3fbb14bfd.zip |
If the application uses tls_session_secret_cb for session resumption, set
the CCS_OK flag. From OpenSSL trunk.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/s3_clnt.c | 5 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/s3_clnt.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c index 017aaaecba..3596acf1de 100644 --- a/src/lib/libssl/s3_clnt.c +++ b/src/lib/libssl/s3_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_clnt.c,v 1.76 2014/07/11 13:21:15 miod Exp $ */ | 1 | /* $OpenBSD: s3_clnt.c,v 1.77 2014/07/11 15:44:53 miod Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -849,7 +849,8 @@ ssl3_get_server_hello(SSL *s) | |||
849 | &s->session->master_key_length, NULL, &pref_cipher, | 849 | &s->session->master_key_length, NULL, &pref_cipher, |
850 | s->tls_session_secret_cb_arg)) { | 850 | s->tls_session_secret_cb_arg)) { |
851 | s->session->cipher = pref_cipher ? | 851 | s->session->cipher = pref_cipher ? |
852 | pref_cipher : ssl_get_cipher_by_char(s, p + j); | 852 | pref_cipher : ssl_get_cipher_by_char(s, p + j); |
853 | s->s3->flags |= SSL3_FLAGS_CCS_OK; | ||
853 | } | 854 | } |
854 | } | 855 | } |
855 | 856 | ||
diff --git a/src/lib/libssl/src/ssl/s3_clnt.c b/src/lib/libssl/src/ssl/s3_clnt.c index 017aaaecba..3596acf1de 100644 --- a/src/lib/libssl/src/ssl/s3_clnt.c +++ b/src/lib/libssl/src/ssl/s3_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_clnt.c,v 1.76 2014/07/11 13:21:15 miod Exp $ */ | 1 | /* $OpenBSD: s3_clnt.c,v 1.77 2014/07/11 15:44:53 miod Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -849,7 +849,8 @@ ssl3_get_server_hello(SSL *s) | |||
849 | &s->session->master_key_length, NULL, &pref_cipher, | 849 | &s->session->master_key_length, NULL, &pref_cipher, |
850 | s->tls_session_secret_cb_arg)) { | 850 | s->tls_session_secret_cb_arg)) { |
851 | s->session->cipher = pref_cipher ? | 851 | s->session->cipher = pref_cipher ? |
852 | pref_cipher : ssl_get_cipher_by_char(s, p + j); | 852 | pref_cipher : ssl_get_cipher_by_char(s, p + j); |
853 | s->s3->flags |= SSL3_FLAGS_CCS_OK; | ||
853 | } | 854 | } |
854 | } | 855 | } |
855 | 856 | ||