tor-browser

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

WebTransportCertificateVerifier.h (852B)


      1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 #ifndef mozilla_net_WebTransportCertificateVerifier_h
      7 #define mozilla_net_WebTransportCertificateVerifier_h
      8 
      9 #include "nsTArray.h"
     10 #include "nsIWebTransport.h"
     11 #include "nss/mozpkix/pkixtypes.h"
     12 
     13 namespace mozilla::net {
     14 // This is a special version for serverCertificateHashes introduced with
     15 // WebTransport
     16 mozilla::pkix::Result AuthCertificateWithServerCertificateHashes(
     17    nsTArray<uint8_t>& peerCert,
     18    const nsTArray<RefPtr<nsIWebTransportHash>>& aServerCertHashes);
     19 
     20 }  // namespace mozilla::net
     21 
     22 #endif  // mozilla_net_WebTransportCertificateVerifier_h