Switch from mincrypt to BoringSSL in applypatch and updater.

Bug: 18790686
Change-Id: I7d2136fb39b2266f5ae5be24819c617b08a6c21e
This commit is contained in:
Sen Jiang
2016-02-04 16:23:21 +08:00
parent e3434279c8
commit c48cb5e597
10 changed files with 59 additions and 61 deletions

View File

@@ -30,7 +30,7 @@
#include <bzlib.h>
#include "mincrypt/sha.h"
#include "openssl/sha.h"
#include "applypatch.h"
void ShowBSDiffLicense() {
@@ -114,7 +114,7 @@ int ApplyBSDiffPatch(const unsigned char* old_data, ssize_t old_size,
printf("short write of output: %d (%s)\n", errno, strerror(errno));
return 1;
}
if (ctx) SHA_update(ctx, new_data, new_size);
if (ctx) SHA1_Update(ctx, new_data, new_size);
free(new_data);
return 0;