tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

common.h (766B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #ifndef TLS_COMMON_H_
      6 #define TLS_COMMON_H_
      7 
      8 #include <cstddef>
      9 
     10 #include "prio.h"
     11 #include "seccomon.h"
     12 
     13 namespace TlsCommon {
     14 
     15 void FixTime(PRFileDesc* fd);
     16 void EnableAllProtocolVersions();
     17 void EnableAllCipherSuites(PRFileDesc* fd);
     18 void DoHandshake(PRFileDesc* fd, bool isServer);
     19 
     20 SECStatus DummyCompressionEncode(const SECItem* input, SECItem* output);
     21 SECStatus DummyCompressionDecode(const SECItem* input, unsigned char* output,
     22                                 size_t outputLen, size_t* usedLen);
     23 
     24 }  // namespace TlsCommon
     25 
     26 #endif  // TLS_COMMON_H_