| OLD | NEW |
| 1 /* | 1 /* |
| 2 ** Copyright (c) 1999, 2000, 2001, 2002, 2003 | 2 ** Copyright (c) 1999, 2000, 2001, 2002, 2003 |
| 3 ** Adel I. Mirzazhanov. All rights reserved | 3 ** Adel I. Mirzazhanov. All rights reserved |
| 4 ** | 4 ** |
| 5 ** Redistribution and use in source and binary forms, with or without | 5 ** Redistribution and use in source and binary forms, with or without |
| 6 ** modification, are permitted provided that the following conditions | 6 ** modification, are permitted provided that the following conditions |
| 7 ** are met: | 7 ** are met: |
| 8 ** | 8 ** |
| 9 ** 1.Redistributions of source code must retain the above copyright notice, | 9 ** 1.Redistributions of source code must retain the above copyright notice, |
| 10 ** this list of conditions and the following disclaimer. | 10 ** this list of conditions and the following disclaimer. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 26 ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 27 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 /* | 30 /* |
| 31 ** randpass.h | 31 ** randpass.h |
| 32 */ | 32 */ |
| 33 #ifndef APG_RANDPASS_H | 33 #ifndef APG_RANDPASS_H |
| 34 #define APG_RANDPASS_H 1 | 34 #define APG_RANDPASS_H 1 |
| 35 | 35 |
| 36 #ifndef APG_OWN_TYPES_H | |
| 37 #include "owntypes.h" | |
| 38 #endif | |
| 39 | |
| 40 struct sym | 36 struct sym |
| 41 { | 37 { |
| 42 char ch; | 38 char ch; |
| 43 USHORT type; | 39 unsigned short type; |
| 44 }; | 40 }; |
| 45 | 41 |
| 46 /* char gen_symbol(unsigned short int symbol_class); */ | 42 /* char gen_symbol(unsigned short int symbol_class); */ |
| 47 extern int gen_rand_pass(char* password_string, int minl, | 43 extern int gen_rand_pass(char* password_string, int minl, |
| 48 int maxl, unsigned int pass_mode); | 44 int maxl, unsigned int pass_mode); |
| 49 extern int gen_rand_symbol (char *symbol, unsigned int mode); | 45 extern int gen_rand_symbol (char *symbol, unsigned int mode); |
| 50 extern int is_restricted_symbol (char symbol); | 46 extern bool is_restricted_symbol (char symbol); |
| 51 | 47 |
| 52 #endif /* RANDPASS_H */ | 48 #endif /* RANDPASS_H */ |
| OLD | NEW |