From b0d62bcdc382f3921e167da8ff48a534f003d93c Mon Sep 17 00:00:00 2001 From: Benjamin Pollack Date: Sat, 12 Mar 2016 09:27:31 -0500 Subject: [PATCH] io.sockets.secure: add SNI support for Windows M: secure ((client)) is identical between Unix and Windows, so this probably could be moved out of the platform-specific vocab, but doing it sanely would require a refactor I'm not excited about, so punting on that for now. Fixes #1551 --- basis/io/sockets/secure/windows/windows.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/io/sockets/secure/windows/windows.factor b/basis/io/sockets/secure/windows/windows.factor index 1a1cb3c52e..ef3bbdf8de 100644 --- a/basis/io/sockets/secure/windows/windows.factor +++ b/basis/io/sockets/secure/windows/windows.factor @@ -9,7 +9,7 @@ M: openssl ssl-certificate-verification-supported? f ; M: windows socket-handle handle>> alien-address ; M: secure ((client)) ( addrspec -- handle ) - addrspec>> ((client)) f ; + [ addrspec>> ((client)) ] [ hostname>> ] bi ; M: secure (get-local-address) ( handle remote -- sockaddr ) [ file>> ] [ addrspec>> ] bi* (get-local-address) ;