[Dnsmail-cvs] dnsmail UnsafeNativeMethods.cs,1.2,1.2.4.1
Brought to you by:
ethem
From: Ethem E. <et...@us...> - 2006-05-15 15:26:49
|
Update of /cvsroot/dnsmail/dnsmail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv1816/dnsmail Modified Files: Tag: DNSMAIL_02 UnsafeNativeMethods.cs Log Message: Branch fix. Index: UnsafeNativeMethods.cs =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/UnsafeNativeMethods.cs,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -C2 -d -r1.2 -r1.2.4.1 *** UnsafeNativeMethods.cs 6 Mar 2006 15:33:04 -0000 1.2 --- UnsafeNativeMethods.cs 15 May 2006 15:26:41 -0000 1.2.4.1 *************** *** 98,104 **** [In, MarshalAs(UnmanagedType.U2)] UInt16 wType, [In, MarshalAs(UnmanagedType.U4)] UInt32 fOptions, ! [In] IntPtr aipServers, ! [In, Out] ref IntPtr ppQueryResults, ! [In, Out] IntPtr pReserved ); #endregion --- 98,104 ---- [In, MarshalAs(UnmanagedType.U2)] UInt16 wType, [In, MarshalAs(UnmanagedType.U4)] UInt32 fOptions, ! [In] IntPtr aipServers, ! [In, Out] ref IntPtr ppQueryResults, ! [In, Out] IntPtr pReserved ); #endregion *************** *** 171,175 **** } else ! return new string[0]{}; //length=0 } finally --- 171,175 ---- } else ! return new string[0]{}; //length=0 } finally *************** *** 183,187 **** } } ! #endregion } --- 183,187 ---- } } ! #endregion } *************** *** 190,194 **** private UnsafeOpenSsl(){} private const String LIB_EAY = @"libeay32.dll"; ! private const String LIB_SSL = @"ssleay32.dll"; [DllImport(LIB_SSL)] internal static extern int SSL_library_init(); --- 190,194 ---- private UnsafeOpenSsl(){} private const String LIB_EAY = @"libeay32.dll"; ! private const String LIB_SSL = @"ssleay32.dll"; [DllImport(LIB_SSL)] internal static extern int SSL_library_init(); *************** *** 206,210 **** [DllImport(LIB_SSL)] internal static extern int SSL_read(IntPtr ssl, byte* buf, int num); [DllImport(LIB_SSL)] internal static extern int SSL_write(IntPtr ssl, byte* buf, int num); ! [DllImport(LIB_SSL)] internal static extern IntPtr SSL_get_peer_certificate(IntPtr ssl); [DllImport(LIB_SSL)] internal static extern int SSL_get_error(IntPtr ssl, int ret); --- 206,210 ---- [DllImport(LIB_SSL)] internal static extern int SSL_read(IntPtr ssl, byte* buf, int num); [DllImport(LIB_SSL)] internal static extern int SSL_write(IntPtr ssl, byte* buf, int num); ! [DllImport(LIB_SSL)] internal static extern IntPtr SSL_get_peer_certificate(IntPtr ssl); [DllImport(LIB_SSL)] internal static extern int SSL_get_error(IntPtr ssl, int ret); *************** *** 213,218 **** [DllImport(LIB_EAY)] internal static extern int ERR_peek_error(); [DllImport(LIB_EAY)] internal static extern String ERR_error_string_n(int e, System.Text.StringBuilder sb, int l); ! [DllImport(LIB_EAY)] internal static extern void X509_free(IntPtr x509); ! [DllImport(LIB_EAY)] internal static extern int i2d_X509(IntPtr cer, byte** ppOut); } }; --- 213,218 ---- [DllImport(LIB_EAY)] internal static extern int ERR_peek_error(); [DllImport(LIB_EAY)] internal static extern String ERR_error_string_n(int e, System.Text.StringBuilder sb, int l); ! [DllImport(LIB_EAY)] internal static extern void X509_free(IntPtr x509); ! [DllImport(LIB_EAY)] internal static extern int i2d_X509(IntPtr cer, byte** ppOut); } }; |