diff options
| author | jsing <> | 2014-05-08 16:05:38 +0000 |
|---|---|---|
| committer | jsing <> | 2014-05-08 16:05:38 +0000 |
| commit | 7779067b7b5b2153b20dc72d5116caaa3383df0c (patch) | |
| tree | bccc71e2bc50ab48238241efca5212c0b3a7faa5 /src/lib/libcrypto/evp/m_dss1.c | |
| parent | b590070115ee73703baaa8c896eed6bb11a45b0e (diff) | |
| download | openbsd-7779067b7b5b2153b20dc72d5116caaa3383df0c.tar.gz openbsd-7779067b7b5b2153b20dc72d5116caaa3383df0c.tar.bz2 openbsd-7779067b7b5b2153b20dc72d5116caaa3383df0c.zip | |
More KNF.
Diffstat (limited to 'src/lib/libcrypto/evp/m_dss1.c')
| -rw-r--r-- | src/lib/libcrypto/evp/m_dss1.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/m_dss1.c b/src/lib/libcrypto/evp/m_dss1.c index 2d9feff095..ec79cd7c8c 100644 --- a/src/lib/libcrypto/evp/m_dss1.c +++ b/src/lib/libcrypto/evp/m_dss1.c | |||
| @@ -68,17 +68,20 @@ | |||
| 68 | #include <openssl/dsa.h> | 68 | #include <openssl/dsa.h> |
| 69 | #endif | 69 | #endif |
| 70 | 70 | ||
| 71 | static int init(EVP_MD_CTX *ctx) | 71 | static int |
| 72 | init(EVP_MD_CTX *ctx) | ||
| 72 | { | 73 | { |
| 73 | return SHA1_Init(ctx->md_data); | 74 | return SHA1_Init(ctx->md_data); |
| 74 | } | 75 | } |
| 75 | 76 | ||
| 76 | static int update(EVP_MD_CTX *ctx, const void *data, size_t count) | 77 | static int |
| 78 | update(EVP_MD_CTX *ctx, const void *data, size_t count) | ||
| 77 | { | 79 | { |
| 78 | return SHA1_Update(ctx->md_data, data, count); | 80 | return SHA1_Update(ctx->md_data, data, count); |
| 79 | } | 81 | } |
| 80 | 82 | ||
| 81 | static int final(EVP_MD_CTX *ctx, unsigned char *md) | 83 | static int |
| 84 | final(EVP_MD_CTX *ctx, unsigned char *md) | ||
| 82 | { | 85 | { |
| 83 | return SHA1_Final(md, ctx->md_data); | 86 | return SHA1_Final(md, ctx->md_data); |
| 84 | } | 87 | } |
