1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Finished move of ap_md5 routines to apr_md5. Removed ap_md5.h.

Replaced more magic numbers with MD5_DIGESTSIZE.  Yuck.

Submitted by:	William Rowe, Roy Fielding


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85017 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roy T. Fielding
2000-04-23 02:32:58 +00:00
parent 4e54ed5e02
commit 7cbb1cb050
5 changed files with 19 additions and 21 deletions

View File

@@ -59,7 +59,7 @@
/* Utility routines for Apache proxy */
#include "mod_proxy.h"
#include "http_main.h"
#include "ap_md5.h"
#include "apr_md5.h"
#include "http_log.h"
#include "util_uri.h"
#include "util_date.h" /* get ap_checkmask() decl. */
@@ -667,8 +667,8 @@ int ap_proxy_liststr(const char *list, const char *val)
*/
void ap_proxy_hash(const char *it, char *val, int ndepth, int nlength)
{
AP_MD5_CTX context;
unsigned char digest[16];
ap_md5_ctx_t context;
unsigned char digest[MD5_DIGESTSIZE];
char tmp[26];
int i, k, d;
unsigned int x;
@@ -714,8 +714,8 @@ void ap_proxy_hash(const char *it, char *val, int ndepth, int nlength)
void ap_proxy_hash(const char *it, char *val, int ndepth, int nlength)
{
AP_MD5_CTX context;
unsigned char digest[16];
ap_md5_ctx_t context;
unsigned char digest[MD5_DIGESTSIZE];
char tmp[22];
int i, k, d;
unsigned int x;