tor-browser

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

tls13hashstate.h (1207B)


      1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
      2 /*
      3 * This file is PRIVATE to SSL.
      4 *
      5 * This Source Code Form is subject to the terms of the Mozilla Public
      6 * License, v. 2.0. If a copy of the MPL was not distributed with this
      7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      8 
      9 #ifndef __tls13hashstate_h_
     10 #define __tls13hashstate_h_
     11 
     12 #include "ssl.h"
     13 #include "sslt.h"
     14 #include "sslimpl.h"
     15 
     16 SECStatus tls13_MakeHrrCookie(sslSocket *ss, const sslNamedGroupDef *selectedGroup,
     17                              const PRUint8 *appToken, unsigned int appTokenLen,
     18                              PRUint8 *buf, unsigned int *len, unsigned int maxlen);
     19 SECStatus tls13_GetHrrCookieLength(sslSocket *ss, unsigned int *length);
     20 SECStatus tls13_HandleHrrCookie(sslSocket *ss,
     21                                unsigned char *cookie, unsigned int cookieLen,
     22                                ssl3CipherSuite *previousCipherSuite,
     23                                const sslNamedGroupDef **previousGroup,
     24                                PRBool *previousOfferedEch,
     25                                sslEchCookieData *echData,
     26                                PRBool recoverState);
     27 #endif