Hi,

The patch uses already resolved preprocessor var APR_HAVE_CRYPT_H,
instead of fixed OS dependent one.
If someone wishes to add the crypt support to the apr (like for example
Eric Young's fcrypt) on the platform that initially doesn't provide
that, it can be done much easier.



RCS file: /home/cvspublic/apr-util/crypto/apr_md5.c,v
retrieving revision 1.4
diff -u -r1.4 apr_md5.c
--- apr_md5.c   21 Jan 2003 20:27:58 -0000      1.4
+++ apr_md5.c   22 Jan 2003 06:53:54 -0000
@@ -682,7 +682,7 @@
                                                 const char *hash)
 {
     char sample[120];
-#if !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
+#if APR_HAVE_CRYPT_H
     char *crypt_pw;
 #endif
     if (!strncmp(hash, apr1_id, strlen(apr1_id))) {
@@ -695,7 +695,7 @@
         /*
          * It's not our algorithm, so feed it to crypt() if possible.
          */
-#if defined(WIN32) || defined(BEOS) || defined(NETWARE)
+#if !APR_HAVE_CRYPT_H
         apr_cpystrn(sample, passwd, sizeof(sample) - 1);
 #elif defined(CRYPT_R_CRYPTD)
         CRYPTD buffer;


***** CVS exited normally with code 1 *****


MT.
ICQ# 163961212

Reply via email to