summaryrefslogtreecommitdiffstats
path: root/crypto.h
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-06-23 16:56:29 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-19 22:13:25 +0200
commitd5f4461779899dc13be3fc7d41e0f0ac308ffa73 (patch)
tree798bacc488d99fa84d82a10a35160e772e88936f /crypto.h
parent902f674ef4170fd10cf47f216632e51214db6966 (diff)
downloadopenvpn-d5f4461779899dc13be3fc7d41e0f0ac308ffa73.tar.gz
openvpn-d5f4461779899dc13be3fc7d41e0f0ac308ffa73.tar.xz
openvpn-d5f4461779899dc13be3fc7d41e0f0ac308ffa73.zip
Refactored message digest functions
Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: David Sommerseth <davids@redhat.com> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'crypto.h')
-rw-r--r--crypto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto.h b/crypto.h
index 0c12ca5..f300e3c 100644
--- a/crypto.h
+++ b/crypto.h
@@ -419,7 +419,6 @@ void prng_uninit ();
void test_crypto (const struct crypto_options *co, struct frame* f);
-const char *md5sum(uint8_t *buf, int len, int n_print_chars, struct gc_arena *gc);
/* key direction functions */
@@ -470,13 +469,14 @@ key_ctx_bi_defined(const struct key_ctx_bi* key)
*/
struct md5_state {
- MD5_CTX ctx;
+ md_ctx_t ctx;
};
struct md5_digest {
uint8_t digest [MD5_DIGEST_LENGTH];
};
+const char *md5sum(uint8_t *buf, int len, int n_print_chars, struct gc_arena *gc);
void md5_state_init (struct md5_state *s);
void md5_state_update (struct md5_state *s, void *data, size_t len);
void md5_state_final (struct md5_state *s, struct md5_digest *out);