bool nsICertOverrideService.HasMatchingOverride(nsACStringBase aHostName, int aPort, nsIX509Cert aCert, ref uint aOverrideBits, ref bool aIsTemporary)
 {
     if (validityOverrideEvent != null)
     {
         var ea = new CertOverrideEventArgs(
             aHostName.ToString(),
             aPort,
             Xpcom.QueryInterface <nsIX509Cert>(aCert).Wrap(Certificate.Create)                    // addref
             );
         validityOverrideEvent(this, ea);
         if (ea.Handled)
         {
             aOverrideBits = (uint)ea.OverrideResult;
             aIsTemporary  = ea.Temporary;
             return(true);
         }
     }
     return(Instance.HasMatchingOverride(aHostName, aPort, aCert, ref aOverrideBits, ref aIsTemporary));
 }
Exemplo n.º 2
0
 protected static extern int NS_CStringContainerFinish(nsACStringBase container);
Exemplo n.º 3
0
 protected internal static extern int NS_CStringGetData(nsACStringBase str, out IntPtr data, IntPtr nullTerm);
Exemplo n.º 4
0
 protected static extern int NS_CStringSetData(nsACStringBase str, string data, int length);
Exemplo n.º 5
0
 protected static extern int NS_CStringContainerInit(nsACStringBase container);
Exemplo n.º 6
0
 public void GetUANameAttribute(nsACStringBase aUAName)
 {
     aUAName.SetData("geckofx");
 }
Exemplo n.º 7
0
 public void GetPlatformBuildIDAttribute(nsACStringBase aPlatformBuildID)
 {
     aPlatformBuildID.SetData("0");
 }
Exemplo n.º 8
0
 public void RememberTemporaryValidityOverrideUsingFingerprint(nsACStringBase aHostName, int aPort,
                                                               nsACStringBase aCertFingerprint, uint aOverrideBits)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 9
0
 public void GetAppBuildIDAttribute(nsACStringBase aAppBuildID)
 {
     aAppBuildID.SetData("unknown_id");
 }
Exemplo n.º 10
0
 public void GetVersionAttribute(nsACStringBase aVersion)
 {
     aVersion.SetData("45");
 }
Exemplo n.º 11
0
 public void GetIDAttribute(nsACStringBase aID)
 {
     aID.SetData("unknown_id");
 }
Exemplo n.º 12
0
 public void GetVendorAttribute(nsACStringBase aVendor)
 {
     aVendor.SetData("Mozilla and geckofx contributors");
 }
 void nsICertOverrideService.ClearValidityOverride(nsACStringBase aHostName, int aPort)
 {
     Instance.ClearValidityOverride(aHostName, aPort);
 }
 bool nsICertOverrideService.GetValidityOverride(nsACStringBase aHostName, int aPort, nsACStringBase aHashAlg,
                                                 nsACStringBase aFingerprint, ref uint aOverrideBits, ref bool aIsTemporary)
 {
     return(Instance.GetValidityOverride(aHostName, aPort, aHashAlg, aFingerprint, ref aOverrideBits,
                                         ref aIsTemporary));
 }
 void nsICertOverrideService.RememberValidityOverride(nsACStringBase aHostName, int aPort, nsIX509Cert aCert,
                                                      uint aOverrideBits, bool aTemporary)
 {
     Instance.RememberValidityOverride(aHostName, aPort, aCert, aOverrideBits, aTemporary);
 }
Exemplo n.º 16
0
 protected static extern bool NS_CStringGetIsVoid(nsACStringBase str);
Exemplo n.º 17
0
 protected static extern void NS_CStringSetIsVoid(nsACStringBase str, [MarshalAs(UnmanagedType.Bool)] bool isVoid);
Exemplo n.º 18
0
 public void GetPlatformVersionAttribute(nsACStringBase aPlatformVersion)
 {
     aPlatformVersion.SetData("45");
 }