]> Nishi Git Mirror - libw3.git/commitdiff
solaris moment
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Sat, 10 Feb 2024 07:19:13 +0000 (07:19 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Sat, 10 Feb 2024 07:19:13 +0000 (07:19 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@198 d27a3e52-49c5-7645-884c-6793ebffc270

Library/DNS.c

index e417c4a76b9223ffdfb8c9079b31c19e3a8dba54..a253de278cfddf548cf8385bde8c2c91969493dc 100644 (file)
@@ -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);