2 ===================================================================
3 Cannot display: file marked as a binary type.
4 svn:mime-type = application/xml
6 ===================================================================
7 --- config.m4 (.../tags/RELEASE_0_4)
8 +++ config.m4 (.../trunk)
10 [ --with-crack Include crack support.])
12 if test "$PHP_CRACK" != "no"; then
14 + AC_CHECK_HEADERS(sys/types.h)
15 + AC_CHECK_TYPES([u_int8_t, u_int16_t, u_int32_t], [], [], [
17 +#ifdef HAVE_SYS_TYPES_H
18 +# include <sys/types.h>
22 if test "$PHP_CRACK" != "yes"; then
23 AC_MSG_ERROR(Only the bundled library is supported right now)
26 Property changes on: config.m4
27 ___________________________________________________________________
28 Modified: cvs2svn:cvs-rev
31 \ No newline at end of property
33 \ No newline at end of property
35 ===================================================================
36 --- crack.c (.../tags/RELEASE_0_4)
37 +++ crack.c (.../trunk)
40 /* {{{ crack_functions[]
42 -function_entry crack_functions[] = {
43 +zend_function_entry crack_functions[] = {
44 PHP_FE(crack_opendict, NULL)
45 PHP_FE(crack_closedict, NULL)
46 PHP_FE(crack_check, NULL)
51 -#if ZEND_MODULE_API_NO >= 20010901
55 STANDARD_MODULE_PROPERTIES,
62 +#if PHP_VERSION_ID < 50400
64 filename_len = strlen(path) + 10;
65 filename = (char *) emalloc(filename_len);
72 if (php_check_open_basedir(path TSRMLS_CC)) {
76 if ((-1 == CRACKG(default_dict)) && (NULL != CRACKG(default_dictionary))) {
77 CRACKLIB_PWDICT *pwdict;
78 - printf("trying to open: %s\n", CRACKG(default_dictionary));
79 pwdict = cracklib_pw_open(CRACKG(default_dictionary), "r");
81 ZEND_REGISTER_RESOURCE(return_value, pwdict, le_crack);
84 php_info_print_table_start();
85 php_info_print_table_header(2, "crack support", "enabled");
86 + php_info_print_table_row(2, "extension version", PHP_CRACK_VERSION);
87 php_info_print_table_end();
89 DISPLAY_INI_ENTRIES();
91 Property changes on: crack.c
92 ___________________________________________________________________
93 Modified: cvs2svn:cvs-rev
96 \ No newline at end of property
98 \ No newline at end of property
99 Index: package_dll.xml
100 ===================================================================
101 --- package_dll.xml (.../tags/RELEASE_0_4)
102 +++ package_dll.xml (.../trunk)
104 Property changes on: package_dll.xml
105 ___________________________________________________________________
106 Deleted: svn:mime-type
109 \ No newline at end of property
110 Index: libcrack/src/config.h
111 ===================================================================
112 --- libcrack/src/config.h (.../tags/RELEASE_0_4)
113 +++ libcrack/src/config.h (.../trunk)
115 -#include "../../config.h"
117 -# define THREADSAFE 1
122 Index: libcrack/src/cracklib.h
123 ===================================================================
124 --- libcrack/src/cracklib.h (.../tags/RELEASE_0_4)
125 +++ libcrack/src/cracklib.h (.../trunk)
130 -# include "config.h"
131 +# include "../../config.h"
134 -#if HAVE_CRACK_BUNDLED || defined(WIN32)
135 +#ifdef HAVE_SYS_TYPES_H
136 +# include <sys/types.h>
140 +# define MALLOC(x) (malloc(x))
141 +# define FREE(x) (free(x))
144 # include "php_ini.h"
145 # include "ext/standard/info.h"
147 # include "../../php_crack.h"
148 # define MALLOC(x) (emalloc(x))
149 # define FREE(x) (efree(x))
150 -#elif defined(IN_CRACKLIB)
151 -# define MALLOC(x) (malloc(x))
152 -# define FREE(x) (free(x))
155 +#ifdef HAVE_U_INT8_T
156 +typedef u_int8_t int8;
158 -# error not available yet
159 +typedef unsigned char int8;
162 +#ifdef HAVE_U_INT16_T
163 +typedef u_int16_t int16;
165 +typedef unsigned short int int16;
168 +#ifdef HAVE_U_INT32_T
169 +typedef u_int32_t int32;
171 +typedef unsigned int int32;
174 #define STRINGSIZE 1024
175 #define TRUNCSTRINGSIZE (STRINGSIZE/4)
177 -typedef unsigned char int8;
178 -typedef unsigned short int int16;
179 -typedef unsigned long int int32;
185 Property changes on: libcrack/src/cracklib.h
186 ___________________________________________________________________
187 Modified: cvs2svn:cvs-rev
190 \ No newline at end of property
192 \ No newline at end of property
193 Index: libcrack/src/packlib.c
194 ===================================================================
195 --- libcrack/src/packlib.c (.../tags/RELEASE_0_4)
196 +++ libcrack/src/packlib.c (.../trunk)
198 strcpy(name, prefix);
199 strcat(name, ".pwi");
200 if (!(pdesc->ifp = fopen(name, mode))) {
208 return (CRACKLIB_PWDICT *) 0;
218 return (CRACKLIB_PWDICT *) 0;
228 return (CRACKLIB_PWDICT *) 0;
238 return (CRACKLIB_PWDICT *) 0;
240 Property changes on: libcrack/src/packlib.c
241 ___________________________________________________________________
242 Modified: cvs2svn:cvs-rev
245 \ No newline at end of property
247 \ No newline at end of property
248 Index: libcrack/src/rules.c
249 ===================================================================
250 --- libcrack/src/rules.c (.../tags/RELEASE_0_4)
251 +++ libcrack/src/rules.c (.../trunk)
256 - if (strlen(area) <= limit) {
257 + if ((int) strlen(area) <= limit) {
265 - if (strlen(area) >= limit) {
266 + if ((int) strlen(area) >= limit) {
271 Property changes on: libcrack/src/rules.c
272 ___________________________________________________________________
273 Modified: cvs2svn:cvs-rev
276 \ No newline at end of property
278 \ No newline at end of property
280 ===================================================================
281 --- package.xml (.../tags/RELEASE_0_4)
282 +++ package.xml (.../trunk)
284 +<?xml version="1.0" encoding="ISO-8859-1" ?>
285 +<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-2.0">
286 +<package version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
288 + <channel>pecl.php.net</channel>
289 + <summary>"Good Password" Checking Utility: Keep your users' passwords reasonably safe from dictionary based attacks</summary>
290 + <description>This package provides an interface to the cracklib (libcrack) libraries that come standard on most unix-like distributions. This allows you to check passwords against dictionaries of words to ensure some minimal level of password security.
292 +From the cracklib README
293 +CrackLib makes literally hundreds of tests to determine whether you've
294 +chosen a bad password.
296 +* It tries to generate words from your username and gecos entry to tries
297 +to match them against what you've chosen.
299 +* It checks for simplistic patterns.
301 +* It then tries to reverse-engineer your password into a dictionary
302 +word, and searches for it in your dictionary.
304 +- after all that, it's PROBABLY a safe(-ish) password. 8-)
307 + <name>Joseph Tate</name>
309 + <email>jtate@php.net</email>
310 + <active>yes</active>
313 + <name>Sascha Kettler</name>
314 + <user>skettler</user>
315 + <email>skettler@php.net</email>
316 + <active>yes</active>
318 + <date>2005-09-21</date>
320 + <release>0.4</release>
324 + <release>stable</release>
327 + <license uri="http://www.php.net/license/3_0.txt">PHP</license>
328 + <notes>Updated to PEAR 1.4 (package2.xml format), added binary package for Win32, fixed compatibility with PHP 4.1</notes>
331 + <file role="doc" name="CREDITS" />
332 + <file role="doc" name="EXPERIMENTAL" />
333 + <file role="src" name="config.m4" />
334 + <file role="src" name="config.w32" />
335 + <file role="src" name="crack.dsp" />
336 + <file role="src" name="crack.c" />
337 + <file role="src" name="php_crack.h" />
338 + <dir name="libcrack">
339 + <file role="doc" name="HISTORY" />
340 + <file role="doc" name="LICENCE" />
341 + <file role="doc" name="MANIFEST" />
342 + <file role="doc" name="POSTER" />
343 + <file role="doc" name="README" />
345 + <file role="src" name="mkdict" />
346 + <file role="src" name="packer.c" />
347 + <file role="src" name="testlib.c" />
348 + <file role="src" name="testnum.c" />
349 + <file role="src" name="teststr.c" />
350 + <file role="src" name="unpacker.c" />
353 + <file role="src" name="config.h" />
354 + <file role="src" name="cracklib.h" />
355 + <file role="src" name="fascist.c" />
356 + <file role="src" name="genrules.pl" />
357 + <file role="src" name="packlib.c" />
358 + <file role="src" name="rules.c" />
360 + <dir name="include">
361 + <file role="src" name="crack.h" />
365 + <file role="test" name="001.phpt" />
379 + <providesextension>crack</providesextension>
381 + <binarypackage>crack_dll</binarypackage>
385 + <date>2005-09-21</date>
387 + <release>0.4</release>
391 + <release>stable</release>
394 + <license uri="http://www.php.net/license/3_0.txt">PHP</license>
395 + <notes>Updated to PEAR 1.4 (package2.xml format), added binary package for Win32, fixed compatibility with PHP 4.1</notes>
398 + <date>2005-09-05</date>
400 + <release>0.3</release>
404 + <release>beta</release>
407 + <license uri="http://www.php.net/license/3_0.txt">PHP</license>
408 + <notes>Bundled with cracklib, removed static variables for thread safety, new functionality</notes>
411 + <date>2005-03-17</date>
413 + <release>0.2</release>
417 + <release>stable</release>
420 + <license uri="http://www.php.net/license/3_0.txt">PHP</license>
421 + <notes>Fixes PHP bug #28905</notes>
424 + <date>2004-07-21</date>
426 + <release>0.1</release>
430 + <release>stable</release>
433 + <license uri="http://www.php.net/license/3_0.txt">PHP</license>
434 + <notes>Extension moved from PHP source to PECL</notes>
439 Property changes on: package.xml
440 ___________________________________________________________________
441 Added: cvs2svn:cvs-rev
444 \ No newline at end of property
446 ===================================================================
447 --- win32_dll (.../tags/RELEASE_0_4)
448 +++ win32_dll (.../trunk)
450 Property changes on: win32_dll
451 ___________________________________________________________________
456 ===================================================================
457 --- config.w32 (.../tags/RELEASE_0_4)
458 +++ config.w32 (.../trunk)
461 +// vim:ft=javascript
463 +ARG_WITH("crack", "for cracklib support", "no");
465 +if (PHP_CRACK != "no") {
466 + if (PHP_CRACK != "yes") {
467 + ERROR("Only the bundled library is supported right now");
470 + // Use bundled library
472 + EXTENSION("crack", "crack.c", null, "-I" + configure_module_dirname + "/libcrack/src");
473 + ADD_SOURCES(configure_module_dirname + "/libcrack/src", "fascist.c packlib.c rules.c", "crack");
474 + AC_DEFINE("HAVE_CRACK", 1, "Define to 1 if we are building with the crack library.");
475 + AC_DEFINE("HAVE_CRACK_BUNDLED", 1, "Define to 1 to build against the bundled crack library.");
479 Property changes on: config.w32
480 ___________________________________________________________________
484 \ No newline at end of property
485 Added: cvs2svn:cvs-rev
488 \ No newline at end of property
491 +Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
492 \ No newline at end of property
494 ===================================================================
495 --- php_crack.h (.../tags/RELEASE_0_4)
496 +++ php_crack.h (.../trunk)
499 #define crack_module_ptr &crack_module_entry
501 +#define PHP_CRACK_VERSION "0.5.0-dev"
503 PHP_MINIT_FUNCTION(crack);
504 PHP_MSHUTDOWN_FUNCTION(crack);
505 PHP_RINIT_FUNCTION(crack);
507 Property changes on: php_crack.h
508 ___________________________________________________________________
509 Modified: cvs2svn:cvs-rev
512 \ No newline at end of property
514 \ No newline at end of property
516 ===================================================================
517 --- tests (.../tags/RELEASE_0_4)
518 +++ tests (.../trunk)
520 Property changes on: tests
521 ___________________________________________________________________
531 ===================================================================
532 --- . (.../tags/RELEASE_0_4)
535 Property changes on: .
536 ___________________________________________________________________