Skip to content

Commit

Permalink
Use java.util.Base64 instead of org.apache.commons.codec.binary.Base64
Browse files Browse the repository at this point in the history
This was probably accidentally pulled in from a transitive dependency.
  • Loading branch information
DerGuteMoritz committed Apr 5, 2024
1 parent 09566b5 commit 659f245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/aleph/ssl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
(java.security KeyFactory PrivateKey)
(java.security.cert CertificateFactory X509Certificate)
(java.security.spec RSAPrivateCrtKeySpec)
(org.apache.commons.codec.binary Base64)))
(java.util Base64)))

(set! *warn-on-reflection* false)

(defn gen-cert
^X509Certificate [^String pemstr]
(.generateCertificate (CertificateFactory/getInstance "X.509")
(ByteArrayInputStream. (Base64/decodeBase64 pemstr))))
(ByteArrayInputStream. (.decode (Base64/getDecoder) pemstr))))

(defn gen-key
^PrivateKey [public-exponent k]
Expand Down

0 comments on commit 659f245

Please sign in to comment.