Source release 16.2.0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user