Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from absurdfarce/ssl-brokenness
Browse files Browse the repository at this point in the history
Incorporating Phil's changes to get SSL working again.
  • Loading branch information
absurdfarce committed Feb 25, 2016
2 parents 370bbe1 + 7691a67 commit ca376e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject absurdfarce/cassaforte "2.0.1-30drivers-1.0.0"
(defproject absurdfarce/cassaforte "2.0.1-30drivers-1.0.2"
:min-lein-version "2.5.0"
:description "A Clojure client for Apache Cassandra"
:url "http://clojurecassandra.info"
Expand Down
9 changes: 5 additions & 4 deletions src/clojure/clojurewerkz/cassaforte/client.clj
Expand Up @@ -128,14 +128,15 @@
(into-array String cipher-suites)
;; v3.0 of the drivers dropped SSLOptions.DEFAULT_SSL_CIPHER_SUITES so we'll just re-use
;; the literal here.
{ "TLS_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_256_CBC_SHA" })]
(into-array String ["TLS_RSA_WITH_AES_128_CBC_SHA" "TLS_RSA_WITH_AES_256_CBC_SHA"]))]
(.load keystore keystore-stream password)
(.init keymanager keystore password)
(.init trustmanager keystore)
(.init ssl-context (.getKeyManagers keymanager) (.getTrustManagers trustmanager) nil)
(-> (JdkSSLOptions/builder)
(.withSSLContext ssl-context)
(.withCipherSuites ssl-cipher-suites))))
(.. (JdkSSLOptions/builder)
(withSSLContext ssl-context)
(withCipherSuites ssl-cipher-suites)
(build))))

(defn- ^ProtocolOptions$Compression select-compression
[compression]
Expand Down

0 comments on commit ca376e5

Please sign in to comment.