Source release 16.2.0

This commit is contained in:
John W. Bruce
2020-04-10 16:13:07 -07:00
parent 1ff9f8588a
commit b830b1d1fb
883 changed files with 509706 additions and 143739 deletions

View File

@@ -7,19 +7,20 @@
// can't tolerate BoringSSL or OpenSSL as a dependency.
//
#include "log.h"
#include "privacy_crypto.h"
#ifdef __APPLE__
#include <CommonCrypto/CommonDigest.h>
#define SHA256 CC_SHA256
#define SHA256_DIGEST_LENGTH CC_SHA256_DIGEST_LENGTH
#define MD5 CC_MD5
#define MD5_DIGEST_LENGTH CC_MD5_DIGEST_LENGTH
# include <CommonCrypto/CommonDigest.h>
# define SHA256 CC_SHA256
# define SHA256_DIGEST_LENGTH CC_SHA256_DIGEST_LENGTH
# define MD5 CC_MD5
# define MD5_DIGEST_LENGTH CC_MD5_DIGEST_LENGTH
#else
#error "No hash algorithm known for this platform."
# error "No hash algorithm known for this platform."
#endif
#include "log.h"
namespace wvcdm {
AesCbcKey::AesCbcKey() {}
@@ -52,7 +53,7 @@ bool RsaPublicKey::VerifySignature(const std::string& message,
bool ExtractExtensionValueFromCertificate(const std::string& cert,
const std::string& extension_oid,
size_t cert_index, uint32_t* value) {
LOGE("ExtractExtensionValueFromCertificate: Not supported in this build.");
LOGE("Not supported in this build");
return false;
}