Return-Path: Delivered-To: apmail-apache-cvs-archive@apache.org Received: (qmail 33468 invoked by uid 500); 5 Jul 2000 00:58:50 -0000 Mailing-List: contact apache-cvs-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-cvs@apache.org Received: (qmail 33402 invoked by uid 500); 5 Jul 2000 00:58:45 -0000 Delivered-To: apmail-apache-2.0-cvs@apache.org Date: 5 Jul 2000 00:58:43 -0000 Message-ID: <20000705005843.33370.qmail@locus.apache.org> From: rbb@locus.apache.org To: apache-2.0-cvs@apache.org Subject: cvs commit: apache-2.0/src/lib/apr/include apr_md5.h rbb 00/07/04 17:58:40 Modified: src/lib/apr/include apr_md5.h Log: Document the MD5 functions in APR. Revision Changes Path 1.13 +61 -0 apache-2.0/src/lib/apr/include/apr_md5.h Index: apr_md5.h =================================================================== RCS file: /home/cvs/apache-2.0/src/lib/apr/include/apr_md5.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- apr_md5.h 2000/05/26 16:23:13 1.12 +++ apr_md5.h 2000/07/05 00:58:38 1.13 @@ -107,17 +107,78 @@ #endif } ap_md5_ctx_t; +/* + +=head1 ap_status_t ap_MD5Init(ap_md5_ctx_t *context) + +B + + arg 1) The MD5 context to initialize. + +=cut + */ APR_EXPORT(ap_status_t) ap_MD5Init(ap_md5_ctx_t *context); + +/* + +=head1 ap_status_t ap_MD5SetXlate(ap_md5_ctx_t *context, ap_xlate_t *xlate) + +B + + arg 1) The MD5 content to set the translation for. + arg 2) The translation handle to use for this MD5 context + +=cut + */ #if APR_HAS_XLATE APR_EXPORT(ap_status_t) ap_MD5SetXlate(ap_md5_ctx_t *context, ap_xlate_t *xlate); #else #define ap_MD5SetXlate(context, xlate) APR_ENOTIMPL #endif + +/* + +=head1 ap_status_t ap_MD5Update(ap_md5_ctx_t *context, const unsigned char *input, unsigned int inputLen) + +B + + arg 1) The MD5 content to update. + arg 2) next message block to update + arg 3) The length of the next message block + +=cut + */ APR_EXPORT(ap_status_t) ap_MD5Update(ap_md5_ctx_t *context, const unsigned char *input, unsigned int inputLen); + +/* + +=head1 ap_status_t ap_MD5Final(unsigned char digest[MD5_DIGESTSIZE, ap_md5_ctx_t *context) + +B + + arg 1) The final MD5 digest + arg 2) The MD5 content we are finalizing. + +=cut + */ APR_EXPORT(ap_status_t) ap_MD5Final(unsigned char digest[MD5_DIGESTSIZE], ap_md5_ctx_t *context); + +/* + +=head1 ap_status_t ap_MD5Encode(unsigned char *passwd, const char *salt, char *result, size_t nbytes) + +B + + arg 1) The password to encode + arg 2) The salt to use for the encoding + arg 3) The string to store the encoded password in + arg 4) The length of the string + +=cut + */ APR_EXPORT(ap_status_t) ap_MD5Encode(const char *password, const char *salt, char *result, size_t nbytes);