pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/bozohttpd auth-bozo.c cheats and assumes that libc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6ed4af1ea296
branches:  trunk
changeset: 533074:6ed4af1ea296
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Sep 07 23:01:59 2007 +0000

description:
auth-bozo.c cheats and assumes that libcrypto.so is linked against
libcrypt.so and so just include <unistd.h> is enough to use crypt().
This doesn't work when the assumption fails.  Since we always build
with SSL support in pkgsrc, just use the DES_crypt() from the OpenSSL
libraries.

diffstat:

 www/bozohttpd/distinfo         |   3 ++-
 www/bozohttpd/patches/patch-aa |  26 ++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r 3430cdb47865 -r 6ed4af1ea296 www/bozohttpd/distinfo
--- a/www/bozohttpd/distinfo    Fri Sep 07 22:56:23 2007 +0000
+++ b/www/bozohttpd/distinfo    Fri Sep 07 23:01:59 2007 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.41 2006/05/18 02:48:53 rpaulo Exp $
+$NetBSD: distinfo,v 1.42 2007/09/07 23:01:59 jlam Exp $
 
 SHA1 (bozohttpd-20060517.tar.bz2) = 45ed3c268fffc884db93ebc975121b7c79060fa8
 RMD160 (bozohttpd-20060517.tar.bz2) = edf15fe2998ca2fae0035f8380639e8741d0406a
 Size (bozohttpd-20060517.tar.bz2) = 33032 bytes
+SHA1 (patch-aa) = f1934786cb309cee8ec1c77e0760ee1e79b90f8f
diff -r 3430cdb47865 -r 6ed4af1ea296 www/bozohttpd/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/bozohttpd/patches/patch-aa    Fri Sep 07 23:01:59 2007 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.17 2007/09/07 23:01:59 jlam Exp $
+
+--- auth-bozo.c.orig   Wed May 17 08:19:10 2006
++++ auth-bozo.c
+@@ -37,7 +37,12 @@
+ #include <sys/param.h>
+ 
+ #include <string.h>
++
++#ifndef NO_SSL_SUPPORT
++#include <openssl/des.h>
++#else
+ #include <unistd.h>
++#endif
+ 
+ #include "bozohttpd.h"
+ 
+@@ -97,7 +102,7 @@ auth_check(http_req *request, const char
+                           request->hr_authpass));
+                       if (strcmp(request->hr_authuser, user) != 0)
+                               continue;
+-                      if (strcmp(crypt(request->hr_authpass, pass), pass))
++                      if (strcmp(DES_crypt(request->hr_authpass, pass), pass))
+                               break;
+                       fclose(fp);
+                       return;



Home | Main Index | Thread Index | Old Index