2010-05-10 05:42:18 +02:00
|
|
|
$NetBSD: patch-aa,v 1.19 2010/05/10 03:42:18 mrg Exp $
|
2007-09-08 01:01:59 +02:00
|
|
|
|
2010-05-10 05:42:18 +02:00
|
|
|
--- auth-bozo.c.orig 2010-05-09 19:51:28.000000000 -0700
|
|
|
|
+++ auth-bozo.c 2010-05-09 20:13:45.000000000 -0700
|
2009-04-18 23:06:15 +02:00
|
|
|
@@ -38,6 +38,10 @@
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
2007-09-08 01:01:59 +02:00
|
|
|
|
|
|
|
+#ifndef NO_SSL_SUPPORT
|
|
|
|
+#include <openssl/des.h>
|
|
|
|
+#endif
|
2009-04-18 23:06:15 +02:00
|
|
|
+
|
2007-09-08 01:01:59 +02:00
|
|
|
#include "bozohttpd.h"
|
|
|
|
|
2009-04-18 23:06:15 +02:00
|
|
|
#ifndef AUTH_FILE
|
2010-05-10 05:42:18 +02:00
|
|
|
@@ -99,7 +103,7 @@
|
2007-09-08 01:01:59 +02:00
|
|
|
request->hr_authpass));
|
|
|
|
if (strcmp(request->hr_authuser, user) != 0)
|
|
|
|
continue;
|
2010-05-10 05:42:18 +02:00
|
|
|
- if (strcmp(crypt(request->hr_authpass, pass),
|
|
|
|
+ if (strcmp(DES_crypt(request->hr_authpass, pass),
|
|
|
|
pass) != 0)
|
2007-09-08 01:01:59 +02:00
|
|
|
break;
|
|
|
|
fclose(fp);
|