diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/m_netlib.h | 8 | ||||
-rw-r--r-- | include/m_ssl.h | 14 |
2 files changed, 15 insertions, 7 deletions
diff --git a/include/m_netlib.h b/include/m_netlib.h index 9a77973461..a52100ff3f 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -389,7 +389,7 @@ EXTERN_C MIR_APP_DLL(char*) Netlib_AddressToString(sockaddr_in *addr); EXTERN_C MIR_APP_DLL(bool) Netlib_StringToAddress(const char *str, sockaddr_in *addr);
/////////////////////////////////////////////////////////////////////////////////////////
-// Get connection Information
+// Gets connection Information
// IPv4 will be supplied in formats address:port or address
// IPv6 will be supplied in formats [address]:port or [address]
// Returns 0 if successful
@@ -404,6 +404,12 @@ struct NETLIBCONNINFO EXTERN_C MIR_APP_DLL(int) Netlib_GetConnectionInfo(HNETLIBCONN hConnection, NETLIBCONNINFO *connInfo);
/////////////////////////////////////////////////////////////////////////////////////////
+// Gets TLS channel binging data for a socket
+// Returns true if successful
+
+EXTERN_C MIR_APP_DLL(void*) Netlib_GetTlsUnique(HNETLIBCONN nlc, int &cbLen);
+
+/////////////////////////////////////////////////////////////////////////////////////////
// Gets connection Information
//
// Returns (INT_PTR)(NETLIBIPLIST*) numeric IP address address array
diff --git a/include/m_ssl.h b/include/m_ssl.h index d08bc8874d..b55f37eb85 100644 --- a/include/m_ssl.h +++ b/include/m_ssl.h @@ -31,12 +31,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. DECLARE_HANDLE(HSSL);
#endif
-typedef HSSL (__cdecl *pfnConnect)(SOCKET s, const char* host, int verify);
-typedef BOOL (__cdecl *pfnPending)(HSSL ssl);
-typedef int (__cdecl *pfnRead)(HSSL ssl, char *buf, int num, int peek);
-typedef int (__cdecl *pfnWrite)(HSSL ssl, const char *buf, int num);
-typedef void (__cdecl *pfnShutdown)(HSSL ssl);
-typedef void (__cdecl *pfnSfree)(HSSL ssl);
+typedef HSSL (__cdecl *pfnConnect)(SOCKET s, const char* host, int verify);
+typedef BOOL (__cdecl *pfnPending)(HSSL ssl);
+typedef int (__cdecl *pfnRead)(HSSL ssl, char *buf, int num, int peek);
+typedef int (__cdecl *pfnWrite)(HSSL ssl, const char *buf, int num);
+typedef void (__cdecl *pfnShutdown)(HSSL ssl);
+typedef void (__cdecl *pfnSfree)(HSSL ssl);
+typedef void *(__cdecl *pfnUnique)(HSSL ssl, int *cbLen);
struct SSL_API
{
@@ -48,6 +49,7 @@ struct SSL_API pfnWrite write;
pfnShutdown shutdown;
pfnSfree sfree;
+ pfnUnique unique;
};
/*
|