|
@@ -121,7 +121,7 @@ import Queuer
|
|
|
}
|
|
|
|
|
|
func authenticationChallenge(_ challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
|
|
|
- if NCNetworking.shared.checkTrustedChallenge(challenge: challenge, directoryCertificate: CCUtility.getDirectoryCerificates()) {
|
|
|
+ if checkTrustedChallenge(challenge: challenge, directoryCertificate: CCUtility.getDirectoryCerificates()) {
|
|
|
completionHandler(URLSession.AuthChallengeDisposition.useCredential, URLCredential.init(trust: challenge.protectionSpace.serverTrust!))
|
|
|
} else {
|
|
|
completionHandler(URLSession.AuthChallengeDisposition.performDefaultHandling, nil)
|