You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2018/03/19 07:33:19 UTC

[trafficserver] branch quic-latest updated: Derive key after handshake completed on client side

This is an automated email from the ASF dual-hosted git repository.

masaori pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new e7fda2c  Derive key after handshake completed on client side
e7fda2c is described below

commit e7fda2c95512d6151860b68e0b3776360069bed1
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Mon Mar 19 16:33:03 2018 +0900

    Derive key after handshake completed on client side
---
 iocore/net/quic/QUICTLS.cc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/iocore/net/quic/QUICTLS.cc b/iocore/net/quic/QUICTLS.cc
index 949a916..07939b1 100644
--- a/iocore/net/quic/QUICTLS.cc
+++ b/iocore/net/quic/QUICTLS.cc
@@ -153,7 +153,11 @@ QUICTLS::is_handshake_finished() const
 bool
 QUICTLS::is_ready_to_derive() const
 {
-  return SSL_get_current_cipher(this->_ssl) != nullptr;
+  if (this->_netvc_context == NET_VCONNECTION_IN) {
+    return SSL_get_current_cipher(this->_ssl) != nullptr;
+  } else {
+    return this->is_handshake_finished();
+  }
 }
 
 bool

-- 
To stop receiving notification emails like this one, please contact
masaori@apache.org.