2014-04-22 11:16:53 -04:00
|
|
|
USING: accessors http.client http.server io.servers
|
|
|
|
io.sockets.secure io.sockets.secure.openssl kernel tools.test ;
|
2013-09-14 15:18:13 -04:00
|
|
|
IN: io.sockets.secure.openssl.tests
|
|
|
|
|
2014-04-22 10:41:23 -04:00
|
|
|
{ 200 } [ "https://www.google.se" http-get drop code>> ] unit-test
|
|
|
|
|
|
|
|
[
|
2014-03-06 12:41:37 -05:00
|
|
|
<http-server> 8887 >>insecure f >>secure [
|
2014-04-22 10:41:23 -04:00
|
|
|
"https://localhost:8887" http-get
|
2014-03-06 12:41:37 -05:00
|
|
|
] with-threaded-server
|
2014-07-10 01:32:32 -04:00
|
|
|
] must-fail
|
|
|
|
! XXX: Make this fail with certificate-missing-error? on Windows someday.
|
|
|
|
! ] [ certificate-missing-error? ] must-fail-with
|
2013-10-11 12:26:44 -04:00
|
|
|
|
2014-04-22 10:41:23 -04:00
|
|
|
[ "test" 33 <ssl-handle> handle>> check-subject-name ]
|
|
|
|
[ certificate-missing-error? ] must-fail-with
|