-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexternal.h
56 lines (44 loc) · 1.13 KB
/
external.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* This file is part of John the Ripper password cracker,
* Copyright (c) 1996-2001,2011 by Solar Designer
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted.
*
* There's ABSOLUTELY NO WARRANTY, express or implied.
*/
/*
* External mode support.
*/
#ifndef _JOHN_EXTERNAL_H
#define _JOHN_EXTERNAL_H
#include "compiler.h"
#include "loader.h"
#define EXT_REQ_GENERATE 0x00000001
#define EXT_REQ_FILTER 0x00000002
#define EXT_USES_GENERATE 0x00010000
#define EXT_USES_FILTER 0x00020000
extern unsigned int ext_flags;
extern c_int ext_abort, ext_status;
/*
* Defined for use in the ext_filter() macro, below.
*/
extern void *f_filter;
/*
* Initializes an external mode.
*/
extern void ext_init(char *mode);
/*
* Calls an external word filter. Returns 0 if the word is rejected.
*/
#define ext_filter(word) \
(!f_filter || ext_filter_body(word, word))
/*
* The actual implementation of ext_filter(); use the macro instead.
*/
extern int ext_filter_body(char *in, char *out);
/*
* Runs the external mode cracker.
*/
extern void do_external_crack(struct db_main *db);
#endif