1 USING: help.markup help.syntax io.files io.buffers kernel openssl.libssl
3 IN: io.sockets.secure.openssl
6 { $values { "certificate" "an SSL peer certificate" } { "host" string } }
7 { $description "The subject name of a certificate." } ;
9 HELP: subject-names-match?
10 { $values { "name" "a host name" } { "pattern" "a subject name" } { "?" boolean } }
11 { $description "True if the host name matches the subject name." }
14 "\"www.google.se\" \"*.google.se\" subject-names-match?"
19 HELP: alternative-dns-names
20 { $values { "certificate" "an SSL peer certificate" } { "dns-names" sequence } }
21 { $description "Alternative subject names for the certificate." } ;
24 { $values { "ssl-handle" ssl-handle } }
25 { $description "Connects the SSL handle to the remote server. Blocks until the connection is established or an error is thrown." } ;
30 { "ssl-handle" ssl-handle }
31 { "event/f" { $maybe "a symbol indicating the desired operation" } } }
32 { $description "Reads from the ssl connection to the buffer." } ;
37 { "ssl-handle" ssl-handle }
38 { "event/f" { $maybe "a symbol indicating the desired operation" } } }
39 { $description "Writes from the buffer to the ssl connection." } ;
43 { "ssl-handle" ssl-handle }
44 { "ret" "error code returned by an SSL function" }
45 { "event/f" { $maybe "a symbol indicating the desired operation" } }
47 { $description "Checks if the last SSL function returned successfully or not. If so, returns " { $link f } " or a symbol, " { $link +input+ } " or " { $link +output+ } ", that indicates the socket operation required by libssl." } ;
51 { "ssl-handle" ssl-handle }
52 } { $description "Performs SSL handshaking (using " { $link SSL_accept } ") if the handle isn't connected. Then sets its state to connected." } ;