Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: third_party/fips181/randpass.h

Issue 2571113002: Remove unnecessary typedefs in third_party/fips181. (Closed)
Patch Set: Solve for MSVC warning C4805. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/fips181/owntypes.h ('k') | third_party/fips181/randpass.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 */
OLDNEW
« no previous file with comments | « third_party/fips181/owntypes.h ('k') | third_party/fips181/randpass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698