From 1b8dc7b8336ff951e6341317d671e5984dff0aee Mon Sep 17 00:00:00 2001 From: nishi Date: Sat, 10 Feb 2024 07:19:13 +0000 Subject: [PATCH] solaris moment git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@198 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/DNS.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/DNS.c b/Library/DNS.c index e417c4a..a253de2 100644 --- a/Library/DNS.c +++ b/Library/DNS.c @@ -80,7 +80,11 @@ int __W3_DNS_Connect(const char* hostname, bool ssl, uint16_t port #ifdef SSL_SUPPORT if(ssl) { __W3_Debug("SSL", "Initializing"); +#ifdef __sun__ + const SSL_METHOD* method = TLSv1_2_client_method(); +#else const SSL_METHOD* method = TLS_client_method(); +#endif *o_ctx = SSL_CTX_new(method); *o_ssl = SSL_new(*o_ctx); SSL_set_fd(*o_ssl, sock); -- 2.43.0