Marino Faggiana 6 years ago
parent
commit
e8ed37e595

+ 1 - 1
iOSClient/Networking/NCNetworkingEndToEnd.m

@@ -170,7 +170,7 @@
     
     [communication storeEndToEndPrivateKeyCipher:[tableAccount.url stringByAppendingString:@"/"] privateKeyChiper:[CCUtility URLEncodeStringFromString:privateKeyChiper] onCommunication:communication successRequest:^(NSHTTPURLResponse *response, NSString *privateKey, NSString *redirectedServer) {
         
-        completion(account, privateKey, nil, 0);
+        completion(account, privateKeyChiper, nil, 0);
         
     } failureRequest:^(NSHTTPURLResponse *response, NSError *error, NSString *redirectedServer) {
         

+ 1 - 1
iOSClient/Settings/NCEndToEndInitialize.swift

@@ -79,7 +79,7 @@ class NCEndToEndInitialize : NSObject  {
                         
                         if (errorCode == 0 && account == self.appDelegate.activeAccount) {
                             
-                            CCUtility.setEndToEndPublicKey(account, publicKey: csr)
+                            CCUtility.setEndToEndPublicKey(account, publicKey: publicKey)
                             
                             // Request PrivateKey chiper to Server
                             self.getPrivateKeyCipher()