marinofaggiana 4 years ago
parent
commit
536d2b0772
1 changed files with 2 additions and 0 deletions
  1. 2 0
      iOSClient/Networking/NCNetworking.swift

+ 2 - 0
iOSClient/Networking/NCNetworking.swift

@@ -75,8 +75,10 @@ import Queuer
     
     
     func authenticationChallenge(_ challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
     func authenticationChallenge(_ challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
         if NCNetworking.shared.checkTrustedChallenge(challenge: challenge, directoryCertificate: CCUtility.getDirectoryCerificates()) {
         if NCNetworking.shared.checkTrustedChallenge(challenge: challenge, directoryCertificate: CCUtility.getDirectoryCerificates()) {
+            NCCommunicationCommon.shared.writeLog("[LOG] Authentication challenge server trust")
             completionHandler(URLSession.AuthChallengeDisposition.useCredential, URLCredential.init(trust: challenge.protectionSpace.serverTrust!))
             completionHandler(URLSession.AuthChallengeDisposition.useCredential, URLCredential.init(trust: challenge.protectionSpace.serverTrust!))
         } else {
         } else {
+            NCCommunicationCommon.shared.writeLog("[LOG] Authentication challenge default handling")
             completionHandler(URLSession.AuthChallengeDisposition.performDefaultHandling, nil)
             completionHandler(URLSession.AuthChallengeDisposition.performDefaultHandling, nil)
         }
         }
     }
     }