diff options
author | beck <> | 2002-05-15 02:29:21 +0000 |
---|---|---|
committer | beck <> | 2002-05-15 02:29:21 +0000 |
commit | b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9 (patch) | |
tree | fa27cf82a1250b64ed3bf5f4a18c7354d470bbcc /src/lib/libssl/src/crypto/evp/m_null.c | |
parent | e471e1ea98d673597b182ea85f29e30c97cd08b5 (diff) | |
download | openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.gz openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.bz2 openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.zip |
OpenSSL 0.9.7 stable 2002 05 08 merge
Diffstat (limited to 'src/lib/libssl/src/crypto/evp/m_null.c')
-rw-r--r-- | src/lib/libssl/src/crypto/evp/m_null.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/lib/libssl/src/crypto/evp/m_null.c b/src/lib/libssl/src/crypto/evp/m_null.c index e2dadf3dab..f6f0a1d2c0 100644 --- a/src/lib/libssl/src/crypto/evp/m_null.c +++ b/src/lib/libssl/src/crypto/evp/m_null.c | |||
@@ -62,25 +62,32 @@ | |||
62 | #include <openssl/objects.h> | 62 | #include <openssl/objects.h> |
63 | #include <openssl/x509.h> | 63 | #include <openssl/x509.h> |
64 | 64 | ||
65 | static void function(void) | 65 | static int init(EVP_MD_CTX *ctx) |
66 | { | 66 | { return 1; } |
67 | } | 67 | |
68 | static int update(EVP_MD_CTX *ctx,const void *data,unsigned long count) | ||
69 | { return 1; } | ||
68 | 70 | ||
69 | static EVP_MD null_md= | 71 | static int final(EVP_MD_CTX *ctx,unsigned char *md) |
72 | { return 1; } | ||
73 | |||
74 | static const EVP_MD null_md= | ||
70 | { | 75 | { |
71 | NID_undef, | 76 | NID_undef, |
72 | NID_undef, | 77 | NID_undef, |
73 | 0, | 78 | 0, |
74 | function, | 79 | 0, |
75 | function, | 80 | init, |
76 | function, | 81 | update, |
77 | 82 | final, | |
83 | NULL, | ||
84 | NULL, | ||
78 | EVP_PKEY_NULL_method, | 85 | EVP_PKEY_NULL_method, |
79 | 0, | 86 | 0, |
80 | sizeof(EVP_MD *), | 87 | sizeof(EVP_MD *), |
81 | }; | 88 | }; |
82 | 89 | ||
83 | EVP_MD *EVP_md_null(void) | 90 | const EVP_MD *EVP_md_null(void) |
84 | { | 91 | { |
85 | return(&null_md); | 92 | return(&null_md); |
86 | } | 93 | } |