summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl/s3_clnt.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-07-11 15:44:53 +0000
committermiod <miod@openbsd.org>2014-07-11 15:44:53 +0000
commit4c42e410c0eea1ae22ef26e74584399ff0346cbf (patch)
tree51057cdbf47129156676b867244478f37dbc0f8b /lib/libssl/src/ssl/s3_clnt.c
parentAvoid invoking EVP_CIPHER_CTX_cleanup() on uninitialized memory; from (diff)
downloadwireguard-openbsd-4c42e410c0eea1ae22ef26e74584399ff0346cbf.tar.xz
wireguard-openbsd-4c42e410c0eea1ae22ef26e74584399ff0346cbf.zip
If the application uses tls_session_secret_cb for session resumption, set
the CCS_OK flag. From OpenSSL trunk.
Diffstat (limited to 'lib/libssl/src/ssl/s3_clnt.c')
-rw-r--r--lib/libssl/src/ssl/s3_clnt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libssl/src/ssl/s3_clnt.c b/lib/libssl/src/ssl/s3_clnt.c
index 017aaaecba1..3596acf1de5 100644
--- a/lib/libssl/src/ssl/s3_clnt.c
+++ b/lib/libssl/src/ssl/s3_clnt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s3_clnt.c,v 1.76 2014/07/11 13:21:15 miod Exp $ */
+/* $OpenBSD: s3_clnt.c,v 1.77 2014/07/11 15:44:53 miod Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -849,7 +849,8 @@ ssl3_get_server_hello(SSL *s)
&s->session->master_key_length, NULL, &pref_cipher,
s->tls_session_secret_cb_arg)) {
s->session->cipher = pref_cipher ?
- pref_cipher : ssl_get_cipher_by_char(s, p + j);
+ pref_cipher : ssl_get_cipher_by_char(s, p + j);
+ s->s3->flags |= SSL3_FLAGS_CCS_OK;
}
}