diff options
Diffstat (limited to 'security/nss/gtests/ssl_gtest/tls_protect.h')
-rw-r--r-- | security/nss/gtests/ssl_gtest/tls_protect.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/security/nss/gtests/ssl_gtest/tls_protect.h b/security/nss/gtests/ssl_gtest/tls_protect.h index 08b3483aa..d7ea2aa12 100644 --- a/security/nss/gtests/ssl_gtest/tls_protect.h +++ b/security/nss/gtests/ssl_gtest/tls_protect.h @@ -1,4 +1,5 @@ /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -26,9 +27,9 @@ class TlsCipherSpec { bool SetKeys(SSLCipherSuiteInfo* cipherinfo, PK11SymKey* secret); bool Protect(const TlsRecordHeader& header, const DataBuffer& plaintext, - DataBuffer* ciphertext); + DataBuffer* ciphertext, TlsRecordHeader* out_header); bool Unprotect(const TlsRecordHeader& header, const DataBuffer& ciphertext, - DataBuffer* plaintext); + DataBuffer* plaintext, TlsRecordHeader* out_header); uint16_t epoch() const { return epoch_; } uint64_t next_in_seqno() const { return in_seqno_; } @@ -51,6 +52,7 @@ class TlsCipherSpec { uint64_t out_seqno_; bool record_dropped_ = false; ScopedSSLAeadContext aead_; + ScopedSSLMaskingContext mask_; }; } // namespace nss_test |