Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/security/manager/ssl/nsICertStorage.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsICertStorageCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* [must_use] void done (in nsresult rv, in nsIVariant result); */
Method {
name: "Done",
params: &[Param { name: "rv", ty: "nserror::nsresult" }, Param { name: "result", ty: "*const nsIVariant" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIRevocationState",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute short state; */
Method {
name: "GetState",
params: &[Param { name: "aState", ty: "*mut i16" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIIssuerAndSerialRevocationState",
base: Some("nsIRevocationState"),
sync: false,
methods: Ok(&[
/* readonly attribute ACString issuer; */
Method {
name: "GetIssuer",
params: &[Param { name: "aIssuer", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString serial; */
Method {
name: "GetSerial",
params: &[Param { name: "aSerial", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsISubjectAndPubKeyRevocationState",
base: Some("nsIRevocationState"),
sync: false,
methods: Ok(&[
/* readonly attribute ACString subject; */
Method {
name: "GetSubject",
params: &[Param { name: "aSubject", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString pubKey; */
Method {
name: "GetPubKey",
params: &[Param { name: "aPubKey", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsICRLiteCoverage",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute ACString b64LogID; */
Method {
name: "GetB64LogID",
params: &[Param { name: "aB64LogID", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute unsigned long long minTimestamp; */
Method {
name: "GetMinTimestamp",
params: &[Param { name: "aMinTimestamp", ty: "*mut u64" }],
ret: "::nserror::nsresult",
},
/* readonly attribute unsigned long long maxTimestamp; */
Method {
name: "GetMaxTimestamp",
params: &[Param { name: "aMaxTimestamp", ty: "*mut u64" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsICRLiteTimestamp",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute Array<octet> logID; */
Method {
name: "GetLogID",
params: &[Param { name: "aLogID", ty: "*mut thin_vec::ThinVec<u8>" }],
ret: "::nserror::nsresult",
},
/* readonly attribute unsigned long long timestamp; */
Method {
name: "GetTimestamp",
params: &[Param { name: "aTimestamp", ty: "*mut u64" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsICertInfo",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute ACString cert; */
Method {
name: "GetCert",
params: &[Param { name: "aCert", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString subject; */
Method {
name: "GetSubject",
params: &[Param { name: "aSubject", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute short trust; */
Method {
name: "GetTrust",
params: &[Param { name: "aTrust", ty: "*mut i16" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsICertStorage",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* [must_use] void hasPriorData (in octet type, in nsICertStorageCallback callback); */
Method {
name: "HasPriorData",
params: &[Param { name: "type_", ty: "u8" }, Param { name: "callback", ty: "*const nsICertStorageCallback" }],
ret: "::nserror::nsresult",
},
/* [must_use] void setRevocations (in Array<nsIRevocationState> revocations, in nsICertStorageCallback callback); */
Method {
name: "SetRevocations",
params: &[Param { name: "revocations", ty: "*const thin_vec::ThinVec<Option<RefPtr<nsIRevocationState>>>" }, Param { name: "callback", ty: "*const nsICertStorageCallback" }],
ret: "::nserror::nsresult",
},
/* [must_use] short getRevocationState (in Array<octet> issuer, in Array<octet> serial, in Array<octet> subject, in Array<octet> pubkey); */
Method {
name: "GetRevocationState",
params: &[Param { name: "issuer", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "serial", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "subject", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "pubkey", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "_retval", ty: "*mut i16" }],
ret: "::nserror::nsresult",
},
/* [must_use] void setFullCRLiteFilter (in Array<octet> filter, in Array<ACString> enrolledIssuers, in Array<nsICRLiteCoverage> coverage, in nsICertStorageCallback callback); */
Method {
name: "SetFullCRLiteFilter",
params: &[Param { name: "filter", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "enrolledIssuers", ty: "*const thin_vec::ThinVec<::nsstring::nsCString>" }, Param { name: "coverage", ty: "*const thin_vec::ThinVec<Option<RefPtr<nsICRLiteCoverage>>>" }, Param { name: "callback", ty: "*const nsICertStorageCallback" }],
ret: "::nserror::nsresult",
},
/* [must_use,noscript] short getCRLiteRevocationState (in Array<octet> issuer, in Array<octet> issuerSPKI, in Array<octet> serialNumber, in Array<nsICRLiteTimestamp> timestamps); */
Method {
name: "GetCRLiteRevocationState",
params: &[Param { name: "issuer", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "issuerSPKI", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "serialNumber", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "timestamps", ty: "*const thin_vec::ThinVec<Option<RefPtr<nsICRLiteTimestamp>>>" }, Param { name: "_retval", ty: "*mut i16" }],
ret: "::nserror::nsresult",
},
/* [must_use] void addCRLiteStash (in Array<octet> stash, in nsICertStorageCallback callback); */
Method {
name: "AddCRLiteStash",
params: &[Param { name: "stash", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "callback", ty: "*const nsICertStorageCallback" }],
ret: "::nserror::nsresult",
},
/* [must_use] void addCRLiteDelta (in Array<octet> delta, in ACString filename, in nsICertStorageCallback callback); */
Method {
name: "AddCRLiteDelta",
params: &[Param { name: "delta", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "filename", ty: "*const ::nsstring::nsACString" }, Param { name: "callback", ty: "*const nsICertStorageCallback" }],
ret: "::nserror::nsresult",
},
/* [must_use,noscript] boolean isCertRevokedByStash (in Array<octet> issuerSPKI, in Array<octet> serialNumber); */
Method {
name: "IsCertRevokedByStash",
params: &[Param { name: "issuerSPKI", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "serialNumber", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* [must_use] void addCerts (in Array<nsICertInfo> certs, in nsICertStorageCallback callback); */
Method {
name: "AddCerts",
params: &[Param { name: "certs", ty: "*const thin_vec::ThinVec<Option<RefPtr<nsICertInfo>>>" }, Param { name: "callback", ty: "*const nsICertStorageCallback" }],
ret: "::nserror::nsresult",
},
/* [must_use] void removeCertsByHashes (in Array<ACString> hashes, in nsICertStorageCallback callback); */
Method {
name: "RemoveCertsByHashes",
params: &[Param { name: "hashes", ty: "*const thin_vec::ThinVec<::nsstring::nsCString>" }, Param { name: "callback", ty: "*const nsICertStorageCallback" }],
ret: "::nserror::nsresult",
},
/* [must_use] Array<Array<octet>> findCertsBySubject (in Array<octet> subject); */
Method {
name: "FindCertsBySubject",
params: &[Param { name: "subject", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<thin_vec::ThinVec<u8>>" }],
ret: "::nserror::nsresult",
},
/* [must_use] int32_t GetRemainingOperationCount (); */
Method {
name: "GetRemainingOperationCount",
params: &[Param { name: "_retval", ty: "*mut i32" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}