]> gitweb.factorcode.org Git - factor.git/commitdiff
openssl.libssl.tests: removing stupid test that didn't work
authorBjörn Lindqvist <bjourne@gmail.com>
Sat, 19 Nov 2016 22:24:51 +0000 (23:24 +0100)
committerBjörn Lindqvist <bjourne@gmail.com>
Sat, 19 Nov 2016 22:24:51 +0000 (23:24 +0100)
you can't know beforehand which of the tls versions openssl supports.

basis/openssl/libssl/libssl-tests.factor

index dcbe9b98a8d7a6a93b8448b1039bff81c4664489..c9d0b673aaa273af69674ce78fa71a2286d0e3a2 100644 (file)
@@ -1,7 +1,5 @@
-USING: arrays destructors kernel math openssl openssl.libssl sequences
+USING: destructors kernel math openssl openssl.libssl sequences
 tools.test ;
-USING: openssl ;
-
 IN: openssl.libssl.tests
 
 maybe-init-ssl
@@ -57,14 +55,3 @@ maybe-init-ssl
         } [ execute( x -- x ) ] with map
     ] with-destructors
 ] unit-test
-
-: method>version-string ( method -- str )
-    new-ctx new-ssl SSL_get_version ;
-
-! SSL_get_version
-{ { "TLSv1" "TLSv1.1" "TLSv1.2" } } [
-    [
-        TLSv1_method TLSv1_1_method TLSv1_2_method 3array
-        [ method>version-string ] map
-    ] with-destructors
-] unit-test