浏览代码

add new key

Marino Faggiana 7 年之前
父节点
当前提交
f449660bc3
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      iOSClient/Main/CCMain.m

+ 3 - 1
iOSClient/Main/CCMain.m

@@ -1236,7 +1236,8 @@
 
 - (void)getEndToEndPrivateKeySuccess:(CCMetadataNet *)metadataNet
 {
-    NSLog(@"OK");
+    // Store signed key locally keychain
+    [CCUtility setEndToEndPrivateKey:app.activeUser privateKey:metadataNet.options];    
 }
 
 - (void)getEndToEndPrivateKeyFailure:(CCMetadataNet *)metadataNet message:(NSString *)message errorCode:(NSInteger)errorCode
@@ -1275,6 +1276,7 @@
     NSLog(@"OK");
     
     // Store signed key locally keychain
+    [CCUtility setEndToEndPublicKey:app.activeUser publicKey:metadataNet.options];
 }
 
 - (void)getEndToEndPublicKeyFailure:(CCMetadataNet *)metadataNet message:(NSString *)message errorCode:(NSInteger)errorCode