Browse Source

fix encryptAsymmetricString

Marino Faggiana 7 năm trước cách đây
mục cha
commit
f1e3313ccf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      iOSClient/Security/NCEndToEndEncryption.m

+ 1 - 1
iOSClient/Security/NCEndToEndEncryption.m

@@ -482,7 +482,7 @@ cleanup:
     if (status <= 0 || outLen == 0)
         return nil;
     
-    unsigned char *out = (unsigned char *) OPENSSL_malloc(outLen);
+    unsigned char *out = (unsigned char *) malloc(outLen);
     status = EVP_PKEY_encrypt(ctx, out, &outLen, [plainData bytes], (int)[plainData length]);
     if (status <= 0)
         return nil;