~afafaf4/john/saucy

« back to all changes in this revision

Viewing changes to src/MD5_fmt.c

  • Committer: Bazaar Package Importer
  • Author(s): Ruben Molina, David Paleino, Ruben Molina
  • Date: 2009-10-17 12:48:20 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091017124820-c9lc0e6fs7ujjqo4
Tags: 1.7.3.1-1
[David Paleino]
* New upstream release
* debian/man/john.8:
  - updated the locations of john's session files (Closes: #360591)
  - updated descriptions of --rules and --test (Closes: #485422)
* debian/extra/:
  - john-mailer.conf and cronjob extended to allow per-group password
    cracking -- thanks to Fabian Zeindl (LP: #194036)
* debian/patches/:
  - 01-add_NTLM-MD4.patch,
    02-add_MS-Credential-Cache.patch,
    03-add_NetLM-NetNTLM.patch,
    05-mipsel.patch,
    07-update_FAQ.patch refreshed.
  - 08-add_BFEgg.patch,
    10-add_DOMINOSEC.patch,
    11-add_lotus5.patch,
    12-add_raw-md5.patch,
    13-add_raw-sha1.patch,
    14-add_IPB2.patch,
    16-add_NSLDAP.patch,
    17-add_OPENLDAPS.patch,
    18-add_HDAA.patch added (from "Jumbo Patch" available on upstream's
    homepage).
  - series updated
  - these will be the only patches added, in case of problems in future
    some might be removed as well (Closes: #220005)
* debian/docs updated
* debian/copyright updated
* debian/watch updated
* debian/README.wordlists: typo fixed (Closes: #512158)
* debian/control:
  - moved to git, updated Vcs-* fields
  - updated Standards-Version to 3.8.0
    + debian/README.source added
  - DMUA set
* debian/man/john-mmx.8 added (Closes: #132223)

[Ruben Molina]
* New Maintainer
* Remove David Paleino from Uploaders as requested (Thanks for all!)
* Remove DM-Upload-Allowed bit
* Bump Standards-Version to 3.8.3 (no changes)
* Add headers to patches
* Add versioned references to licences on debian/copyright
* Improve debian/watch
* Add exec-stack.patch from Ubuntu to turn off executable stacks when 
  assembling (thanks Kees). Closes: #543451
* Avoid creation of /var/run/john (must be created dynamically, and is not
  in use on current versions anyway). Fixed maintainer scripts according.
  (Fix dir-or-file-in-var-run)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * This file is part of John the Ripper password cracker,
3
 
 * Copyright (c) 1996-2001 by Solar Designer
 
3
 * Copyright (c) 1996-2001,2008 by Solar Designer
4
4
 */
5
5
 
6
6
#include <string.h>
105
105
        return saved_key[index];
106
106
}
107
107
 
108
 
static int cmp_all(void *binary, int index)
 
108
static int cmp_all(void *binary, int count)
109
109
{
110
110
#if MD5_X2
111
111
        return *(MD5_word *)binary == MD5_out[0][0] ||
115
115
#endif
116
116
}
117
117
 
 
118
static int cmp_one(void *binary, int index)
 
119
{
 
120
        return *(MD5_word *)binary == MD5_out[index][0];
 
121
}
 
122
 
118
123
static int cmp_exact(char *source, int index)
119
124
{
120
125
        return !memcmp(MD5_std_get_binary(source), MD5_out[index],
121
 
                sizeof(MD5_binary));
 
126
            sizeof(MD5_binary));
122
127
}
123
128
 
124
129
struct fmt_main fmt_MD5 = {
158
163
                        get_hash_2
159
164
                },
160
165
                cmp_all,
161
 
                cmp_all,
 
166
                cmp_one,
162
167
                cmp_exact
163
168
        }
164
169
};