瀏覽代碼

add comment

Marino Faggiana 7 年之前
父節點
當前提交
802f07c56b
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      iOSClient/Security/NCClientEncryption.m

+ 4 - 1
iOSClient/Security/NCClientEncryption.m

@@ -38,7 +38,7 @@
 
 #define NSMakeError(description) [NSError errorWithDomain:@"com.nextcloud.nextcloudiOS" code:-1 userInfo:@{NSLocalizedDescriptionKey: description}];
 
-#define addName(field, value) X509_NAME_add_entry_by_txt(name, field,  MBSTRING_ASC, (unsigned char *)value, -1, -1, 0); NSLog(@"%s: %s", field, value);
+#define addName(field, value) X509_NAME_add_entry_by_txt(name, field, MBSTRING_ASC, (unsigned char *)value, -1, -1, 0); NSLog(@"%s: %s", field, value);
 
 #define AES_KEY_LENGTH      16
 #define AES_IVEC_LENGTH     16
@@ -58,7 +58,9 @@
     return NCClientEncryption;
 }
 
+#
 #pragma mark - Generate Certificate X509 & Private Key
+#
 
 - (void)generateCertificateX509WithDirectoryUser:(NSString *)directoryUser userID:(NSString *)userID finished:(void (^)(NSError *))finished
 {
@@ -385,4 +387,5 @@ cleanup:
         [output appendFormat:@"%02x", digest[i]];
     return output;
 }
+
 @end