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 b6e8858  [draft-11] Relax restrictions of 
QUICTransportParameterId::STATELESS_RESET_TOKEN
b6e8858 is described below

commit b6e885823118ee95abfaf58c56247ba591ffbe1d
Author: Masaori Koshiba <[email protected]>
AuthorDate: Fri Jun 22 10:17:32 2018 +0900

    [draft-11] Relax restrictions of 
QUICTransportParameterId::STATELESS_RESET_TOKEN
---
 iocore/net/quic/QUICTransportParameters.cc | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/iocore/net/quic/QUICTransportParameters.cc 
b/iocore/net/quic/QUICTransportParameters.cc
index fbf402b..53b2c0b 100644
--- a/iocore/net/quic/QUICTransportParameters.cc
+++ b/iocore/net/quic/QUICTransportParameters.cc
@@ -457,16 +457,13 @@ 
QUICTransportParametersInEncryptedExtensions::_validate_parameters() const
 
   decltype(this->_parameters)::const_iterator ite;
 
-  // MUSTs
+  // MAYs
   if ((ite = 
this->_parameters.find(QUICTransportParameterId::STATELESS_RESET_TOKEN)) != 
this->_parameters.end()) {
     if (ite->second->len() != QUICStatelessResetToken::LEN) {
       return -1;
     }
-  } else {
-    return -2;
   }
 
-  // MAYs
   if ((ite = 
this->_parameters.find(QUICTransportParameterId::PREFERRED_ADDRESS)) != 
this->_parameters.end()) {
     if (ite->second->len() < QUICPreferredAddress::MIN_LEN || 
QUICPreferredAddress::MAX_LEN < ite->second->len()) {
       return -3;
@@ -509,16 +506,13 @@ 
QUICTransportParametersInNewSessionTicket::_validate_parameters() const
 
   decltype(this->_parameters)::const_iterator ite;
 
-  // MUSTs
+  // MAYs
   if ((ite = 
this->_parameters.find(QUICTransportParameterId::STATELESS_RESET_TOKEN)) != 
this->_parameters.end()) {
     if (ite->second->len() != QUICStatelessResetToken::LEN) {
       return -1;
     }
-  } else {
-    return -2;
   }
 
-  // MAYs
   if ((ite = 
this->_parameters.find(QUICTransportParameterId::INITIAL_MAX_BIDI_STREAMS)) != 
this->_parameters.end()) {
     if (ite->second->len() != 4) {
       return -3;

Reply via email to