tor-browser

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

nsNSSCallbacks.h (1486B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
      2 *
      3 * This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef nsNSSCallbacks_h
      8 #define nsNSSCallbacks_h
      9 
     10 #include "mozilla/BasePrincipal.h"
     11 #include "mozilla/TimeStamp.h"
     12 #include "mozilla/Vector.h"
     13 #include "nspr.h"
     14 #include "nsString.h"
     15 #include "pk11func.h"
     16 #include "mozpkix/pkix.h"
     17 #include "mozpkix/pkixtypes.h"
     18 #include "nsIX509Cert.h"
     19 #include "ssl.h"
     20 
     21 using mozilla::OriginAttributes;
     22 using mozilla::TimeDuration;
     23 using mozilla::Vector;
     24 
     25 class nsILoadGroup;
     26 
     27 char* PK11PasswordPrompt(PK11SlotInfo* slot, PRBool retry, void* arg);
     28 
     29 void HandshakeCallback(PRFileDesc* fd, void* client_data);
     30 void SecretCallback(PRFileDesc* fd, PRUint16 epoch, SSLSecretDirection dir,
     31                    PK11SymKey* secret, void* arg);
     32 SECStatus CanFalseStartCallback(PRFileDesc* fd, void* client_data,
     33                                PRBool* canFalseStart);
     34 
     35 mozilla::pkix::Result DoOCSPRequest(
     36    const nsCString& aiaLocation, const OriginAttributes& originAttributes,
     37    uint8_t (&ocspRequest)[mozilla::pkix::OCSP_REQUEST_MAX_LENGTH],
     38    size_t ocspRequestLength, TimeDuration timeout,
     39    /*out*/ Vector<uint8_t>& result);
     40 
     41 nsCString getKeaGroupName(uint32_t aKeaGroup);
     42 nsCString getSignatureName(uint32_t aSignatureScheme);
     43 
     44 #endif  // nsNSSCallbacks_h