From: nishi Date: Sat, 10 Feb 2024 07:19:13 +0000 (+0000) Subject: solaris moment X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=1b8dc7b8336ff951e6341317d671e5984dff0aee;p=libw3.git solaris moment git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@198 d27a3e52-49c5-7645-884c-6793ebffc270 --- 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);