diff options
author | David Benjamin <davidben@chromium.org> | 2014-11-04 02:55:14 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-11-05 03:43:09 +0300 |
commit | 817ec3462e246b8301a73e44854e2bb3df90d5e6 (patch) | |
tree | 30766ced8c56a5366f45459127f3c5901c95d367 /crypto/evp | |
parent | 8fb19217a0946cc9f9e7cae21e2708e5dc026e46 (diff) |
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>
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/CMakeLists.txt | 6 | ||||
-rw-r--r-- | crypto/evp/evp_test.c (renamed from crypto/evp/example_sign.c) | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/crypto/evp/CMakeLists.txt b/crypto/evp/CMakeLists.txt index 43e351a7..dc1734c9 100644 --- a/crypto/evp/CMakeLists.txt +++ b/crypto/evp/CMakeLists.txt @@ -23,9 +23,9 @@ add_library( 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 index 616fc34d..670df37e 100644 --- a/crypto/evp/example_sign.c +++ b/crypto/evp/evp_test.c @@ -258,7 +258,7 @@ out: 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 @@ out: 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 @@ out: 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 @@ int main(void) { 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 @@ int main(void) { return 1; } - if (!example_EVP_DigestVerifyInitFromAlgorithm()) { + if (!test_EVP_DigestVerifyInitFromAlgorithm()) { fprintf(stderr, "EVP_DigestVerifyInitFromAlgorithm failed\n"); return 1; } |