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_ecdsa.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_ecdsa.c')
| -rw-r--r-- | src/lib/libcrypto/evp/m_ecdsa.c | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/src/lib/libcrypto/evp/m_ecdsa.c b/src/lib/libcrypto/evp/m_ecdsa.c index 1d7714571c..a2dc889b86 100644 --- a/src/lib/libcrypto/evp/m_ecdsa.c +++ b/src/lib/libcrypto/evp/m_ecdsa.c | |||
| @@ -117,17 +117,20 @@ | |||
| 117 | 117 | ||
| 118 | #ifndef OPENSSL_NO_SHA | 118 | #ifndef OPENSSL_NO_SHA | 
| 119 | 119 | ||
| 120 | static int init(EVP_MD_CTX *ctx) | 120 | static int | 
| 121 | init(EVP_MD_CTX *ctx) | ||
| 121 | { | 122 | { | 
| 122 | return SHA1_Init(ctx->md_data); | 123 | return SHA1_Init(ctx->md_data); | 
| 123 | } | 124 | } | 
| 124 | 125 | ||
| 125 | static int update(EVP_MD_CTX *ctx, const void *data, size_t count) | 126 | static int | 
| 127 | update(EVP_MD_CTX *ctx, const void *data, size_t count) | ||
| 126 | { | 128 | { | 
| 127 | return SHA1_Update(ctx->md_data, data, count); | 129 | return SHA1_Update(ctx->md_data, data, count); | 
| 128 | } | 130 | } | 
| 129 | 131 | ||
| 130 | static int final(EVP_MD_CTX *ctx, unsigned char *md) | 132 | static int | 
| 133 | final(EVP_MD_CTX *ctx, unsigned char *md) | ||
| 131 | { | 134 | { | 
| 132 | return SHA1_Final(md, ctx->md_data); | 135 | return SHA1_Final(md, ctx->md_data); | 
| 133 | } | 136 | } | 
