summaryrefslogtreecommitdiff
path: root/include/apr_md5.h
diff options
context:
space:
mode:
authorjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2001-06-04 18:11:09 +0000
committerjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2001-06-04 18:11:09 +0000
commite1a3b80a2f7919c224024909619ed0eb35ad3583 (patch)
tree420dcfc157b5244ba880ef62bd0a298fe0d02b22 /include/apr_md5.h
parent9513fc699eb10abc08a29474738d5ec2eaba65c5 (diff)
downloadlibapr-e1a3b80a2f7919c224024909619ed0eb35ad3583.tar.gz
- adds some trivial error checking. Maybe someone
wants to complete this by adding the less trivial error checks? - adds a direct md5 computation function: apr_status_t apr_md5(unsigned char digest[MD5_DIGESTSIZE], const unsigned char *input, apr_size_t inputLen); This will return the md5 digest of the given input block. Submitted by: Sander Striker <striker@samba-tng.org> Reviewed by: Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61693 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_md5.h')
-rw-r--r--include/apr_md5.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/apr_md5.h b/include/apr_md5.h
index a035bd5b4..11ea222ab 100644
--- a/include/apr_md5.h
+++ b/include/apr_md5.h
@@ -158,6 +158,17 @@ APR_DECLARE(apr_status_t) apr_md5_final(unsigned char digest[MD5_DIGESTSIZE],
apr_md5_ctx_t *context);
/**
+ * MD5 in one step
+ * @param digest The final MD5 digest
+ * @param input The message block to use
+ * @param inputLen The length of the message block
+ * @deffunc apr_status_t apr_md5(unsigned char digest[MD5_DIGESTSIZE], const unsigned char *input, apr_size_t size);
+ */
+APR_DECLARE(apr_status_t) apr_md5(unsigned char digest[MD5_DIGESTSIZE],
+ const unsigned char *input,
+ apr_size_t inputLen);
+
+/**
* Encode a password using an MD5 algorithm
* @param password The password to encode
* @param salt The salt to use for the encoding