Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 4 | * You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | * |
michael@0 | 6 | * The origin of this IDL file is |
michael@0 | 7 | * http://www.w3.org/TR/WebCryptoAPI/ |
michael@0 | 8 | */ |
michael@0 | 9 | |
michael@0 | 10 | [NoInterfaceObject] |
michael@0 | 11 | interface RandomSource { |
michael@0 | 12 | [Throws] |
michael@0 | 13 | ArrayBufferView getRandomValues(ArrayBufferView array); |
michael@0 | 14 | }; |
michael@0 | 15 | |
michael@0 | 16 | Crypto implements RandomSource; |
michael@0 | 17 | |
michael@0 | 18 | interface Crypto { |
michael@0 | 19 | }; |
michael@0 | 20 | |
michael@0 | 21 | #ifndef MOZ_DISABLE_CRYPTOLEGACY |
michael@0 | 22 | [NoInterfaceObject] |
michael@0 | 23 | interface CryptoLegacy { |
michael@0 | 24 | readonly attribute DOMString version; |
michael@0 | 25 | |
michael@0 | 26 | [SetterThrows] |
michael@0 | 27 | attribute boolean enableSmartCardEvents; |
michael@0 | 28 | |
michael@0 | 29 | [Throws,NewObject] |
michael@0 | 30 | CRMFObject? generateCRMFRequest(ByteString? reqDN, |
michael@0 | 31 | ByteString? regToken, |
michael@0 | 32 | ByteString? authenticator, |
michael@0 | 33 | ByteString? eaCert, |
michael@0 | 34 | ByteString? jsCallback, |
michael@0 | 35 | any... args); |
michael@0 | 36 | |
michael@0 | 37 | [Throws] |
michael@0 | 38 | DOMString importUserCertificates(DOMString nickname, |
michael@0 | 39 | DOMString cmmfResponse, |
michael@0 | 40 | boolean doForcedBackup); |
michael@0 | 41 | |
michael@0 | 42 | DOMString signText(DOMString stringToSign, |
michael@0 | 43 | DOMString caOption, |
michael@0 | 44 | ByteString... args); |
michael@0 | 45 | |
michael@0 | 46 | [Throws] |
michael@0 | 47 | void logout(); |
michael@0 | 48 | }; |
michael@0 | 49 | |
michael@0 | 50 | Crypto implements CryptoLegacy; |
michael@0 | 51 | #endif // !MOZ_DISABLE_CRYPTOLEGACY |
michael@0 | 52 |