Remove bssl::Main wrapper in ec_test.

We were using a fully-qualified name for nearly everything anyway.

Change-Id: Ia32c68975ed4126feeab7b420f12b726ad6b89b3
Reviewed-on: https://boringssl-review.googlesource.com/12226
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
David Benjamin 2016-11-12 07:05:39 +09:00 committed by Adam Langley
parent e36888d91a
commit bca451e085

View File

@ -26,8 +26,6 @@
#include <openssl/nid.h>
namespace bssl {
// kECKeyWithoutPublic is an ECPrivateKey with the optional publicKey field
// omitted.
static const uint8_t kECKeyWithoutPublic[] = {
@ -112,7 +110,7 @@ static bssl::UniquePtr<EC_KEY> DecodeECPrivateKey(const uint8_t *in,
// EncodeECPrivateKey encodes |key| as an ECPrivateKey structure into |*out|. It
// returns true on success or false on error.
static bool EncodeECPrivateKey(std::vector<uint8_t> *out, const EC_KEY *key) {
ScopedCBB cbb;
bssl::ScopedCBB cbb;
uint8_t *der;
size_t der_len;
if (!CBB_init(cbb.get(), 0) ||
@ -474,7 +472,7 @@ static bool ForEachCurve(bool (*test_func)(int nid)) {
return true;
}
static int Main() {
int main() {
CRYPTO_library_init();
if (!Testd2i_ECPrivateKey() ||
@ -490,9 +488,3 @@ static int Main() {
printf("PASS\n");
return 0;
}
} // namespace bssl
int main() {
return bssl::Main();
}