PVerifySSLServerCert.ipdl (1709B)
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 include PSMIPCTypes; 9 10 using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h"; 11 using mozilla::psm::EVStatus from "mozilla/ipc/TransportSecurityInfoUtils.h"; 12 using nsITransportSecurityInfo::OverridableErrorCategory from "mozilla/ipc/TransportSecurityInfoUtils.h"; 13 14 namespace mozilla { 15 namespace psm { 16 17 [ChildProc=Socket] 18 protocol PVerifySSLServerCert 19 { 20 child: 21 // This is not an incredibly intuitive order for these arguments, as 22 // `aFinalError` is probably the most salient argument (if it is 0, the 23 // connection will proceed, regardless of the value of, e.g. `aSucceeded`). 24 // However, this ordering matches the order of the related functions in 25 // SSLServerCertVerification.{h,cpp} (minus unnecessary arguments such as 26 // `aPeerCertChain`). 27 async OnVerifySSLServerCertFinished(ByteArray[] aBuiltCertChain, 28 uint16_t aCertTransparencyStatus, 29 EVStatus aEVStatus, 30 bool aSucceeded, 31 int32_t aFinalError, 32 OverridableErrorCategory aOverridableErrorCategory, 33 bool aIsBuiltCertChainRootBuiltInRoot, 34 bool aMadeOCSPRequests); 35 36 async __delete__(); 37 }; 38 39 } // namespace psm 40 } // namespace mozilla