Add more sslsocket classes (#1674)
This commit is contained in:
parent
1f0f932c5e
commit
67dc3af22d
3 changed files with 14 additions and 3 deletions
|
|
@ -192,7 +192,7 @@ java -jar \"$jar\" --config .build/bb.edn --deps-root . release-artifact \"$refl
|
||||||
[shorted?]
|
[shorted?]
|
||||||
(let [docker-executor-conf {:docker [{:image "circleci/clojure:openjdk-11-lein-2.9.8-bullseye"}]}
|
(let [docker-executor-conf {:docker [{:image "circleci/clojure:openjdk-11-lein-2.9.8-bullseye"}]}
|
||||||
machine-executor-conf {:machine {:image "ubuntu-2004:202111-01"}}
|
machine-executor-conf {:machine {:image "ubuntu-2004:202111-01"}}
|
||||||
mac-executor-conf {:macos {:xcode "15.2.0"}}
|
mac-executor-conf {:macos {:xcode "12.5.1"}}
|
||||||
linux-graalvm-home (str "/home/circleci/graalvm-" graalvm-version)
|
linux-graalvm-home (str "/home/circleci/graalvm-" graalvm-version)
|
||||||
mac-graalvm-home (format "/Users/distiller/graalvm-%s/Contents/Home" graalvm-version)]
|
mac-graalvm-home (format "/Users/distiller/graalvm-%s/Contents/Home" graalvm-version)]
|
||||||
(ordered-map
|
(ordered-map
|
||||||
|
|
|
||||||
|
|
@ -242,6 +242,8 @@
|
||||||
javax.net.ssl.TrustManagerFactory
|
javax.net.ssl.TrustManagerFactory
|
||||||
javax.net.ssl.X509TrustManager
|
javax.net.ssl.X509TrustManager
|
||||||
javax.net.ssl.X509ExtendedTrustManager
|
javax.net.ssl.X509ExtendedTrustManager
|
||||||
|
javax.net.ssl.SSLSocket
|
||||||
|
javax.net.ssl.SSLSocketFactory
|
||||||
jdk.internal.net.http.HttpClientBuilderImpl
|
jdk.internal.net.http.HttpClientBuilderImpl
|
||||||
jdk.internal.net.http.HttpClientFacade
|
jdk.internal.net.http.HttpClientFacade
|
||||||
jdk.internal.net.http.HttpRequestBuilderImpl
|
jdk.internal.net.http.HttpRequestBuilderImpl
|
||||||
|
|
@ -727,8 +729,6 @@
|
||||||
java.net.URLClassLoader
|
java.net.URLClassLoader
|
||||||
(instance? java.lang.ClassLoader v)
|
(instance? java.lang.ClassLoader v)
|
||||||
java.lang.ClassLoader
|
java.lang.ClassLoader
|
||||||
(instance? java.io.Closeable v)
|
|
||||||
java.io.Closeable
|
|
||||||
(instance? java.nio.file.attribute.BasicFileAttributes v)
|
(instance? java.nio.file.attribute.BasicFileAttributes v)
|
||||||
java.nio.file.attribute.BasicFileAttributes
|
java.nio.file.attribute.BasicFileAttributes
|
||||||
(instance? java.util.concurrent.Future v)
|
(instance? java.util.concurrent.Future v)
|
||||||
|
|
@ -741,6 +741,10 @@
|
||||||
java.util.Iterator
|
java.util.Iterator
|
||||||
(instance? javax.crypto.SecretKey v)
|
(instance? javax.crypto.SecretKey v)
|
||||||
javax.crypto.SecretKey
|
javax.crypto.SecretKey
|
||||||
|
(instance? javax.net.ssl.SSLSocketFactory v)
|
||||||
|
javax.net.ssl.SSLSocketFactory
|
||||||
|
(instance? javax.net.ssl.SSLSocket v)
|
||||||
|
javax.net.ssl.SSLSocket
|
||||||
(instance? java.lang.Thread v)
|
(instance? java.lang.Thread v)
|
||||||
java.lang.Thread
|
java.lang.Thread
|
||||||
(instance? java.security.cert.X509Certificate v)
|
(instance? java.security.cert.X509Certificate v)
|
||||||
|
|
@ -749,6 +753,8 @@
|
||||||
java.io.Console
|
java.io.Console
|
||||||
(instance? java.util.Set v)
|
(instance? java.util.Set v)
|
||||||
java.util.Set
|
java.util.Set
|
||||||
|
(instance? java.io.Closeable v)
|
||||||
|
java.io.Closeable
|
||||||
;; keep commas for merge friendliness
|
;; keep commas for merge friendliness
|
||||||
)))
|
)))
|
||||||
m (assoc m (list 'quote 'clojure.lang.Var) 'sci.lang.Var)
|
m (assoc m (list 'quote 'clojure.lang.Var) 'sci.lang.Var)
|
||||||
|
|
|
||||||
|
|
@ -50,3 +50,8 @@
|
||||||
(Thread/sleep (/ 1 200) (/ 1 200))
|
(Thread/sleep (/ 1 200) (/ 1 200))
|
||||||
(Thread/sleep (java.time.Duration/ofMillis 1))
|
(Thread/sleep (java.time.Duration/ofMillis 1))
|
||||||
true")))
|
true")))
|
||||||
|
|
||||||
|
(deftest SSL-test
|
||||||
|
(is (= :user/success
|
||||||
|
(bb nil "(try (.createSocket (javax.net.ssl.SSLSocketFactory/getDefault) \"localhost\" 4444) (catch java.net.ConnectException e ::success))")))
|
||||||
|
(is (bb nil " (.startHandshake (.createSocket (javax.net.ssl.SSLSocketFactory/getDefault) \"clojure.org\" 443)) ::success")))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue