示例#1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (certificate != null)
         {
             certificate.Dispose();
             certificate = null;
         }
         if (privateKey != null)
         {
             privateKey.Dispose();
             privateKey = null;
         }
         if (handle != null)
         {
             handle.Dispose();
             handle = null;
         }
     }
     base.Dispose(disposing);
 }
示例#2
0
		protected override void Dispose (bool disposing)
		{
			if (disposing) {
				if (certificate != null) {
					certificate.Dispose ();
					certificate = null;
				}
				if (privateKey != null) {
					privateKey.Dispose ();
					privateKey = null;
				}
				if (handle != null) {
					native_openssl_close (handle);
					handle.Dispose ();
					handle = null;
				}
			}
			base.Dispose (disposing);
		}
示例#3
0
		extern static int native_openssl_set_certificate (
			OpenSslHandle handle, CertificateHandle certificate, PrivateKeyHandle privateKey);
示例#4
0
		extern static int native_openssl_load_certificate_from_pkcs12 (
			OpenSslHandle handle, byte[] buffer, int len,
			[MarshalAs (UnmanagedType.LPStr)] string password, int passlen,
			out CertificateHandle certificate, out PrivateKeyHandle privateKey);
示例#5
0
 extern static int native_openssl_set_certificate(
     OpenSslHandle handle, CertificateHandle certificate, PrivateKeyHandle privateKey);
示例#6
0
 extern static int native_openssl_load_certificate_from_pkcs12(
     OpenSslHandle handle, byte[] buffer, int len,
     [MarshalAs(UnmanagedType.LPStr)] string password, int passlen,
     out CertificateHandle certificate, out PrivateKeyHandle privateKey);
 internal static extern bool CertAddCertificateContextToStore(
     CertificateStoreHandle hCertStore,
     CertificateHandle pCertContext,
     AddDisposition dwAddDisposition,
     [Out] out CertificateHandle ppStoreContext);