1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-28 06:03:25 +00:00

1. Updated ALPN support to work better with NodeJS 6.0.0

2. Added servername property on tls.socket
This commit is contained in:
Bryan Roe
2021-02-04 20:06:53 -08:00
parent 6f28cdb484
commit 19e7d9e876
5 changed files with 95 additions and 35 deletions

View File

@@ -217,6 +217,7 @@ typedef enum ILibAsyncSocket_TLS_Mode
SSL* ILibAsyncSocket_SetSSLContextEx(ILibAsyncSocket_SocketModule socketModule, SSL_CTX *ssl_ctx, ILibAsyncSocket_TLS_Mode server, char *hostname);
#define ILibAsyncSocket_SetSSLContext(socketModule, ssl_ctx, tlsMode) ILibAsyncSocket_SetSSLContextEx(socketModule, ssl_ctx, tlsMode, NULL)
SSL_CTX *ILibAsyncSocket_GetSSLContext(ILibAsyncSocket_SocketModule socketModule);
SSL* ILibAsyncSocket_GetSSL(ILibAsyncSocket_SocketModule socketModule);
#endif
void ILibAsyncSocket_SetRemoteAddress(ILibAsyncSocket_SocketModule socketModule, struct sockaddr *remoteAddress);