コード例 #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
ファイル: NativeOpenSsl.cs プロジェクト: VimalKumarS/mono-tls
		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
ファイル: NativeOpenSsl.cs プロジェクト: VimalKumarS/mono-tls
		extern static int native_openssl_set_certificate (
			OpenSslHandle handle, CertificateHandle certificate, PrivateKeyHandle privateKey);
コード例 #4
0
ファイル: NativeOpenSsl.cs プロジェクト: VimalKumarS/mono-tls
		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
ファイル: NativeOpenSsl.cs プロジェクト: nagyist/mono-tls
 extern static int native_openssl_set_certificate(
     OpenSslHandle handle, CertificateHandle certificate, PrivateKeyHandle privateKey);
コード例 #6
0
ファイル: NativeOpenSsl.cs プロジェクト: nagyist/mono-tls
 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);
コード例 #7
0
 internal static extern bool CertAddCertificateContextToStore(
     CertificateStoreHandle hCertStore,
     CertificateHandle pCertContext,
     AddDisposition dwAddDisposition,
     [Out] out CertificateHandle ppStoreContext);