Paste: split io.sockets.secure
Author: | Jon |
Mode: | patch |
Date: | Fri, 19 Feb 2016 14:52:39 |
Plain Text |
diff --git a/basis/http/client/client.factor b/basis/http/client/client.factor
index cb4d9fd..1df634d 100644
+++ b/basis/http/client/client.factor
@@ -6,7 +6,7 @@ http.parsers io io.crlf io.encodings io.encodings.ascii
io.encodings.binary io.encodings.iana io.encodings.string
io.files io.pathnames io.sockets io.timeouts kernel locals math
math.order math.parser mime.types namespaces present sequences
+splitting urls vocabs.loader combinators io.sockets.secure-api ;
IN: http.client
ERROR: too-many-redirects ;
diff --git a/basis/io/sockets/secure/openssl/openssl.factor b/basis/io/sockets/secure/openssl/openssl.factor
index 9cf2862..e70373c 100644
+++ b/basis/io/sockets/secure/openssl/openssl.factor
@@ -4,8 +4,7 @@ USING: accessors alien alien.c-types alien.data alien.strings
assocs byte-arrays classes.struct combinators destructors fry io
io.backend io.buffers io.encodings.8-bit.latin1
io.encodings.utf8 io.files io.pathnames io.ports io.sockets
+io.sockets.secure io.sockets.secure-api io.timeouts kernel libc
locals math math.order math.parser namespaces openssl
openssl.libcrypto openssl.libssl random sequences splitting
unicode.case ;
diff --git a/basis/io/sockets/secure/secure-docs.factor b/basis/io/sockets/secure/secure-docs.factor
index dc9b3a6..42f34db 100644
+++ b/basis/io/sockets/secure/secure-docs.factor
@@ -1,4 +1,5 @@
+USING: calendar help.markup help.syntax io io.sockets
+io.sockets.secure-api quotations ;
IN: io.sockets.secure
HELP: secure-socket-timeout
diff --git a/basis/io/sockets/secure/secure.factor b/basis/io/sockets/secure/secure.factor
index 9e6f555..c7bb083 100644
+++ b/basis/io/sockets/secure/secure.factor
@@ -1,115 +1,8 @@
! Copyright (C) 2008, 2010 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
+USING: combinators system vocabs ;
IN: io.sockets.secure
{
{ [ os unix? ] [ "io.sockets.secure.unix" require ] }
{ [ os windows? ] [ "io.sockets.secure.windows" require ] }
diff --git a/basis/io/sockets/secure/unix/unix.factor b/basis/io/sockets/secure/unix/unix.factor
index 8ccc61a..f0fb825 100644
+++ b/basis/io/sockets/secure/unix/unix.factor
@@ -2,8 +2,8 @@
! See http://factorcode.org/license.txt for BSD license.
USING: accessors combinators destructors io.backend.unix
io.files io.sockets.private io.sockets.secure
+io.sockets.secure-api io.sockets.secure.openssl io.timeouts
+kernel math openssl openssl.libssl system ;
FROM: io.ports => shutdown ;
IN: io.sockets.secure.unix
diff --git a/basis/io/sockets/sockets.factor b/basis/io/sockets/sockets.factor
index ff01ecf..ce24c54 100644
+++ b/basis/io/sockets/sockets.factor
@@ -8,7 +8,7 @@ grouping init io.backend io.binary io.encodings.ascii
io.encodings.binary io.pathnames io.ports io.streams.duplex
kernel locals math math.parser memoize namespaces present
sequences sequences.private splitting strings summary system
+vocabs vocabs.parser io.sockets.secure-api ;
IN: io.sockets
<< {
diff --git a/basis/urls/secure/secure.factor b/basis/urls/secure/secure.factor
index 1c9b925..7f228ce 100644
+++ b/basis/urls/secure/secure.factor
@@ -1,6 +1,7 @@
! Copyright (C) 2008, 2010 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
+USING: io.sockets io.sockets.secure io.sockets.secure-api urls
+urls.private ;
IN: urls.secure
UNION: abstract-inet inet inet4 inet6 ;
Author: | jon |
Mode: | patch |
Date: | Fri, 19 Feb 2016 17:01:43 |
Plain Text |
diff --git a/basis/io/sockets/secure/secure.factor b/basis/io/sockets/secure/secure.factor
index 9e6f555..65c53b9 100644
+++ b/basis/io/sockets/secure/secure.factor
@@ -114,3 +114,6 @@ HOOK: accept-secure-handshake secure-socket-backend ( -- )
{ [ os unix? ] [ "io.sockets.secure.unix" require ] }
{ [ os windows? ] [ "io.sockets.secure.windows" require ] }
} cond
+
+M: object opt-send-secure-handshake send-secure-handshake ;
+M: object opt-accept-secure-handshake accept-secure-handshake ;
diff --git a/basis/io/sockets/sockets.factor b/basis/io/sockets/sockets.factor
index ff01ecf..2ac9b58 100644
+++ b/basis/io/sockets/sockets.factor
@@ -473,3 +473,6 @@ M: invalid-local-address summary
{ [ os unix? ] [ "io.sockets.unix" require ] }
{ [ os windows? ] [ "io.sockets.windows" require ] }
} cond
+
+HOOK: opt-send-secure-handshake f ( -- )
+HOOK: opt-accept-secure-handshake f ( -- )
New Annotation