Rename example_sign to evp_test. This stopped being a sample program a bit ago. Change-Id: I23301fd71a373f995847dcfd64346bd262811f39 Reviewed-on: https://boringssl-review.googlesource.com/2131 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/evp/CMakeLists.txt b/crypto/evp/CMakeLists.txt index 43e351a..dc1734c 100644 --- a/crypto/evp/CMakeLists.txt +++ b/crypto/evp/CMakeLists.txt
@@ -23,9 +23,9 @@ add_executable( - example_sign + evp_test - example_sign.c + evp_test.c ) -target_link_libraries(example_sign crypto) +target_link_libraries(evp_test crypto)
diff --git a/crypto/evp/example_sign.c b/crypto/evp/evp_test.c similarity index 98% rename from crypto/evp/example_sign.c rename to crypto/evp/evp_test.c index 616fc34..670df37 100644 --- a/crypto/evp/example_sign.c +++ b/crypto/evp/evp_test.c
@@ -258,7 +258,7 @@ return ret; } -static int example_EVP_DigestSignInit(void) { +static int test_EVP_DigestSignInit(void) { int ret = 0; EVP_PKEY *pkey = NULL; uint8_t *sig = NULL; @@ -315,7 +315,7 @@ return ret; } -static int example_EVP_DigestVerifyInit(void) { +static int test_EVP_DigestVerifyInit(void) { int ret = 0; EVP_PKEY *pkey = NULL; EVP_MD_CTX md_ctx; @@ -449,7 +449,7 @@ return ret; } -static int example_EVP_DigestVerifyInitFromAlgorithm(void) { +static int test_EVP_DigestVerifyInitFromAlgorithm(void) { int ret = 0; CBS cert, cert_body, tbs_cert, algorithm, signature; uint8_t padding; @@ -543,12 +543,12 @@ CRYPTO_library_init(); ERR_load_crypto_strings(); - if (!example_EVP_DigestSignInit()) { + if (!test_EVP_DigestSignInit()) { fprintf(stderr, "EVP_DigestSignInit failed\n"); return 1; } - if (!example_EVP_DigestVerifyInit()) { + if (!test_EVP_DigestVerifyInit()) { fprintf(stderr, "EVP_DigestVerifyInit failed\n"); return 1; } @@ -558,7 +558,7 @@ return 1; } - if (!example_EVP_DigestVerifyInitFromAlgorithm()) { + if (!test_EVP_DigestVerifyInitFromAlgorithm()) { fprintf(stderr, "EVP_DigestVerifyInitFromAlgorithm failed\n"); return 1; }
diff --git a/util/all_tests.sh b/util/all_tests.sh index de6800f..f6188d1 100644 --- a/util/all_tests.sh +++ b/util/all_tests.sh
@@ -36,7 +36,7 @@ ./crypto/ec/example_mul ./crypto/ecdsa/ecdsa_test ./crypto/err/err_test -./crypto/evp/example_sign +./crypto/evp/evp_test ./crypto/hmac/hmac_test ./crypto/lhash/lhash_test ./crypto/md5/md5_test