Skip to content

Commit

Permalink
Try to avoid breaking bincompat
Browse files Browse the repository at this point in the history
  • Loading branch information
nafg committed Jun 9, 2024
1 parent c8a6535 commit ff70eb3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions requests/src/requests/Util.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ object Util {
sc
}

@deprecated("No longer used", "0.9.0")
private[requests] val noVerifySocketFactory =
noVerifySSLContext.getSocketFactory

private[requests] def clientCertSSLContext(cert: Cert, verifySslCerts: Boolean) = cert match {
case Cert.P12(path, password) =>

Expand All @@ -56,6 +60,10 @@ object Util {
sc
}

@deprecated("No longer used", "0.9.0")
private[requests] def clientCertSocketFactory(cert: Cert, verifySslCerts: Boolean) =
clientCertSSLContext(cert, verifySslCerts).getSocketFactory

private lazy val trustAllCerts = Array[TrustManager](new X509TrustManager() {
def getAcceptedIssuers = new Array[X509Certificate](0)

Expand Down

0 comments on commit ff70eb3

Please sign in to comment.