tor-browser

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

WebTransportHash.cpp (691B)


      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 #include "WebTransportHash.h"
      7 
      8 namespace mozilla::net {
      9 
     10 NS_IMPL_ISUPPORTS(WebTransportHash, nsIWebTransportHash);
     11 
     12 NS_IMETHODIMP
     13 WebTransportHash::GetValue(nsTArray<uint8_t>& aValue) {
     14  aValue.Clear();
     15  aValue.AppendElements(mValue);
     16  return NS_OK;
     17 }
     18 
     19 NS_IMETHODIMP
     20 WebTransportHash::GetAlgorithm(nsACString& algorithm) {
     21  algorithm.Assign(mAlgorithm);
     22  return NS_OK;
     23 }
     24 }  // namespace mozilla::net