tor-browser

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

PSMIPCTypes.ipdlh (1041B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
      3 
      4 /* This Source Code Form is subject to the terms of the Mozilla Public
      5  * License, v. 2.0. If a copy of the MPL was not distributed with this
      6  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      7 
      8 namespace mozilla {
      9 namespace psm {
     10 
     11 struct ByteArray{
     12   uint8_t[] data;
     13 };
     14 
     15 struct ECKey{
     16   uint8_t[] params; // the EC point representing this key
     17   uint8_t[] cert; // the encoded certificate containing this key
     18 };
     19 
     20 struct RSAKey{
     21   uint8_t[] modulus; // the modulus of this RSA key
     22   uint8_t[] cert; // the encoded certificate containing this key
     23 };
     24 
     25 struct Certificate{
     26   uint8_t[] der; // the encoding of this certificate
     27 };
     28 
     29 // Helper type for sending keys and certificates over IPC for use by IPC client
     30 // certs.
     31 union IPCClientCertObject{
     32   ECKey;
     33   RSAKey;
     34   Certificate;
     35 };
     36 
     37 struct DelegatedCredentialInfoArg {
     38   uint32_t scheme;
     39   uint32_t authKeyBits;
     40 };
     41 
     42 } // namespace psm
     43 } // namespace mozilla