1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsIX509CertList.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +interface nsISimpleEnumerator; 1.11 +interface nsIX509Cert; 1.12 + 1.13 +[scriptable, uuid(a539759b-e22d-462f-94ea-2915b11b33e8)] 1.14 +interface nsIX509CertList : nsISupports { 1.15 + void addCert(in nsIX509Cert cert); 1.16 + void deleteCert(in nsIX509Cert cert); 1.17 + nsISimpleEnumerator getEnumerator(); 1.18 + 1.19 + /* getRawCertList MUST be called only from functions where 1.20 + * the nssShutdownPreventionLock has been adquired. 1.21 + */ 1.22 + [notxpcom, noscript] voidPtr getRawCertList(); 1.23 + 1.24 +}; 1.25 + 1.26 +%{C++ 1.27 + 1.28 +#define NS_X509CERTLIST_CID { /* 959fb165-6517-487f-ab9b-d8913be53197 */ \ 1.29 + 0x959fb165, \ 1.30 + 0x6517, \ 1.31 + 0x487f, \ 1.32 + {0xab, 0x9b, 0xd8, 0x91, 0x3b, 0xe5, 0x31, 0x97} \ 1.33 + } 1.34 + 1.35 +#define NS_X509CERTLIST_CONTRACTID "@mozilla.org/security/x509certlist;1" 1.36 + 1.37 +%}