summaryrefslogtreecommitdiffstats
path: root/src/openvpn/crypto.h
diff options
context:
space:
mode:
authorSteffan Karger <steffan@karger.me>2015-05-03 17:07:11 +0200
committerGert Doering <gert@greenie.muc.de>2015-05-23 14:17:59 +0200
commit827de237860813d2859aaae3aca292d42a9c2a82 (patch)
tree13b527c877f4f62c5c4d51ac0d29243082ea69ca /src/openvpn/crypto.h
parentdb950be85d37eab40d8fffe0bc2060059f8a7e10 (diff)
downloadopenvpn-827de237860813d2859aaae3aca292d42a9c2a82.tar.gz
openvpn-827de237860813d2859aaae3aca292d42a9c2a82.tar.xz
openvpn-827de237860813d2859aaae3aca292d42a9c2a82.zip
cleanup: remove md5 helper functions
The MD5 wrapper functions were used in just a few places, which imho is not worth the extra code. Instead of using these wrappers, just use the generic md_ctx_*() functions directly. The md5sum() function was only used for logging information that was not useful to a user; first the full options string would be printed, and later just the hash. That hash is less informative than the full string, so why print it at all? Finally, also removed save_pulled_options_digest(). The two times it was called, it executed either one of the possible branches in the function, where one of these needed a comment to explain what passing NULL as newdigest is supposed to do... Signed-off-by: Steffan Karger <steffan@karger.me> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1430665631-4022-1-git-send-email-steffan@karger.me> URL: http://article.gmane.org/gmane.network.openvpn.devel/9642 Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/crypto.h')
-rw-r--r--src/openvpn/crypto.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/openvpn/crypto.h b/src/openvpn/crypto.h
index 82158f9..504896d 100644
--- a/src/openvpn/crypto.h
+++ b/src/openvpn/crypto.h
@@ -421,26 +421,6 @@ void get_tls_handshake_key (const struct key_type *key_type,
const unsigned int flags);
/*
- * md5 functions
- */
-
-struct md5_state {
- 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);
-void md5_digest_clear (struct md5_digest *digest);
-bool md5_digest_defined (const struct md5_digest *digest);
-bool md5_digest_equal (const struct md5_digest *d1, const struct md5_digest *d2);
-
-/*
* Inline functions
*/