summaryrefslogtreecommitdiffstats
path: root/src/crypto/digest/digest_test.cc
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-06-09 00:31:54 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-06-09 00:31:54 +0000
commit9d4bc055d8634ee6203925335464b4d9bec34be2 (patch)
tree2aa613266128178591aa10ef500a92702ddbe054 /src/crypto/digest/digest_test.cc
parent907362640544fea73968f6adf34f2b2b5e9b5a00 (diff)
parentf4e427204234da139fd0585def4b4e22502e33f0 (diff)
downloadexternal_boringssl-9d4bc055d8634ee6203925335464b4d9bec34be2.zip
external_boringssl-9d4bc055d8634ee6203925335464b4d9bec34be2.tar.gz
external_boringssl-9d4bc055d8634ee6203925335464b4d9bec34be2.tar.bz2
am f4e42720: Bump revision of BoringSSL.
* commit 'f4e427204234da139fd0585def4b4e22502e33f0': Bump revision of BoringSSL.
Diffstat (limited to 'src/crypto/digest/digest_test.cc')
-rw-r--r--src/crypto/digest/digest_test.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/crypto/digest/digest_test.cc b/src/crypto/digest/digest_test.cc
index dcb569c..6a6113d 100644
--- a/src/crypto/digest/digest_test.cc
+++ b/src/crypto/digest/digest_test.cc
@@ -233,6 +233,16 @@ static int TestDigest(const TestVector *test) {
return true;
}
+static int TestGetters() {
+ if (EVP_get_digestbyname("RSA-SHA512") == NULL ||
+ EVP_get_digestbyname("sha512WithRSAEncryption") == NULL ||
+ EVP_get_digestbyname("nonsense") != NULL) {
+ return false;
+ }
+
+ return true;
+}
+
int main(void) {
CRYPTO_library_init();
ERR_load_crypto_strings();
@@ -244,6 +254,10 @@ int main(void) {
}
}
+ if (!TestGetters()) {
+ return 1;
+ }
+
printf("PASS\n");
return 0;
}