Rename OpenSSL to BoringSSL

Merge from Widevine repo of http://go/wvgerrit/55620

There were two places that explicitly referenced BoringSSL instead of
OpenSSL. (Not counting, of course, all the BoringSSL functions and
headers that still have "OpenSSL" in their names.) This change fixes one
to mention either library and the other to specifically mention
BoringSSL.

Bug: 70636815
Test: CE CDM Unit Tests
Change-Id: I8703e1c427c66953fcc565a4f8f85093c7180f46
This commit is contained in:
Fred Gylys-Colwell
2018-08-03 12:18:34 -07:00
parent 2c940856fd
commit d9c5e59e00
2 changed files with 4 additions and 4 deletions

View File

@@ -189,9 +189,9 @@ bool RsaPublicKey::Encrypt(const std::string& clear_message,
return true;
}
// LogOpenSSLError is a callback from OpenSSL which is called with each error
// LogBoringSSLError is a callback from BoringSSL which is called with each error
// in the thread's error queue.
static int LogOpenSSLError(const char* msg, size_t /* len */, void* /* ctx */) {
static int LogBoringSSLError(const char* msg, size_t /* len */, void* /* ctx */) {
LOGE(" %s", msg);
return 1;
}
@@ -242,7 +242,7 @@ static bool VerifyPSSSignature(EVP_PKEY *pkey, const std::string &message,
return true;
err:
ERR_print_errors_cb(LogOpenSSLError, NULL);
ERR_print_errors_cb(LogBoringSSLError, NULL);
EVP_MD_CTX_free(evp_md_ctx);
return false;
}

View File

@@ -4,7 +4,7 @@
//
// Description:
// Dummy version of privacy crypto classes for systems which
// can't tolerate OpenSSL as a dependency.
// can't tolerate BoringSSL or OpenSSL as a dependency.
//
#include "privacy_crypto.h"