diff options
author | Matt Caswell <matt@openssl.org> | 2015-10-09 16:45:25 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-11-20 23:35:19 +0000 |
commit | 46a283c01c825ab5b8d9020767383b7087e0cb5b (patch) | |
tree | 0e18dfce9b1c572010e81a0de4c507befe4e1cc3 /engines/e_dasync.c | |
parent | 8227255006f3a7e5091e1637f8b5cc904355f045 (diff) | |
download | openssl-46a283c01c825ab5b8d9020767383b7087e0cb5b.zip openssl-46a283c01c825ab5b8d9020767383b7087e0cb5b.tar.gz openssl-46a283c01c825ab5b8d9020767383b7087e0cb5b.tar.bz2 |
Rename some daysnc functions for consistency
For some reason the dasync sha1 functions did not start with the
dasync prefix like all of the other functions do. Changed for
consistency.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'engines/e_dasync.c')
-rw-r--r-- | engines/e_dasync.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/e_dasync.c b/engines/e_dasync.c index 9e0ed1b..76171b1 100644 --- a/engines/e_dasync.c +++ b/engines/e_dasync.c @@ -85,19 +85,19 @@ static int dasync_digest_nids[] = { NID_sha1, 0 }; static void dummy_pause_job(void); /* SHA1 */ -static int digest_sha1_init(EVP_MD_CTX *ctx); -static int digest_sha1_update(EVP_MD_CTX *ctx, const void *data, +static int dasync_sha1_init(EVP_MD_CTX *ctx); +static int dasync_sha1_update(EVP_MD_CTX *ctx, const void *data, unsigned long count); -static int digest_sha1_final(EVP_MD_CTX *ctx, unsigned char *md); +static int dasync_sha1_final(EVP_MD_CTX *ctx, unsigned char *md); -static const EVP_MD digest_sha1 = { +static const EVP_MD dasync_sha1 = { NID_sha1, NID_sha1WithRSAEncryption, SHA_DIGEST_LENGTH, EVP_MD_FLAG_PKEY_METHOD_SIGNATURE | EVP_MD_FLAG_DIGALGID_ABSENT, - digest_sha1_init, - digest_sha1_update, - digest_sha1_final, + dasync_sha1_init, + dasync_sha1_update, + dasync_sha1_final, NULL, NULL, EVP_PKEY_NULL_method, @@ -225,7 +225,7 @@ static int dasync_digests(ENGINE *e, const EVP_MD **digest, /* We are being asked for a specific digest */ switch (nid) { case NID_sha1: - *digest = &digest_sha1; + *digest = &dasync_sha1; break; default: ok = 0; @@ -261,14 +261,14 @@ static void dummy_pause_job(void) { */ #undef data #define data(ctx) ((SHA_CTX *)(ctx)->md_data) -static int digest_sha1_init(EVP_MD_CTX *ctx) +static int dasync_sha1_init(EVP_MD_CTX *ctx) { dummy_pause_job(); return SHA1_Init(data(ctx)); } -static int digest_sha1_update(EVP_MD_CTX *ctx, const void *data, +static int dasync_sha1_update(EVP_MD_CTX *ctx, const void *data, unsigned long count) { dummy_pause_job(); @@ -276,7 +276,7 @@ static int digest_sha1_update(EVP_MD_CTX *ctx, const void *data, return SHA1_Update(data(ctx), data, (size_t)count); } -static int digest_sha1_final(EVP_MD_CTX *ctx, unsigned char *md) +static int dasync_sha1_final(EVP_MD_CTX *ctx, unsigned char *md) { dummy_pause_job(); |