|
1 | | -/* File:connection.h |
2 | | - * |
3 | | - * Description:See "connection.c" |
4 | | - * |
5 | | - * Comments:See "notice.txt" for copyright and license information. |
6 | | - * |
7 | | - */ |
8 | | - |
9 | | -#ifndef__MD5_H__ |
10 | | -#define__MD5_H__ |
11 | | - |
12 | | -#include"psqlodbc.h" |
13 | | - |
14 | | -#include<stdlib.h> |
15 | | -#include<string.h> |
16 | | - |
| 1 | +/* File:connection.h |
| 2 | + * |
| 3 | + * Description:See "md.h" |
| 4 | + * |
| 5 | + * Comments:See "notice.txt" for copyright and license information. |
| 6 | + * |
| 7 | + */ |
| 8 | + |
| 9 | +#ifndef__MD5_H__ |
| 10 | +#define__MD5_H__ |
| 11 | + |
| 12 | +#include"psqlodbc.h" |
| 13 | + |
| 14 | +#include<stdlib.h> |
| 15 | +#include<string.h> |
| 16 | + |
17 | 17 | #ifdefWIN32 |
18 | 18 | #defineMD5_ODBC |
19 | 19 | #defineFRONTEND |
20 | 20 | #endif |
21 | | -#defineMD5_PASSWD_LEN35 |
22 | | - |
23 | | -/* From c.h */ |
24 | | -#ifndef__BEOS__ |
25 | | - |
26 | | -#ifndef__cplusplus |
27 | | - |
28 | | -#ifndefbool |
29 | | -typedefcharbool; |
30 | | -#endif |
31 | | - |
32 | | -#ifndeftrue |
33 | | -#definetrue((bool) 1) |
34 | | -#endif |
35 | | - |
36 | | -#ifndeffalse |
37 | | -#definefalse((bool) 0) |
38 | | -#endif |
39 | | -#endif/* not C++ */ |
40 | | -#endif/* __BEOS__ */ |
41 | | - |
42 | | -#ifndef__BEOS__/* this shouldn't be required, but is is! */ |
43 | | -typedefunsignedcharuint8;/* == 8 bits */ |
44 | | -typedefunsigned shortuint16;/* == 16 bits */ |
45 | | -typedefunsignedintuint32;/* == 32 bits */ |
46 | | -#endif/* __BEOS__ */ |
47 | | - |
48 | | -externboolEncryptMD5(constchar*passwd,constchar*salt, |
49 | | -size_tsalt_len,char*buf); |
50 | | - |
51 | | - |
52 | | -#endif |
| 21 | +#defineMD5_PASSWD_LEN35 |
| 22 | + |
| 23 | +/* From c.h */ |
| 24 | +#ifndef__BEOS__ |
| 25 | + |
| 26 | +#ifndef__cplusplus |
| 27 | + |
| 28 | +#ifndefbool |
| 29 | +typedefcharbool; |
| 30 | +#endif |
| 31 | + |
| 32 | +#ifndeftrue |
| 33 | +#definetrue((bool) 1) |
| 34 | +#endif |
| 35 | + |
| 36 | +#ifndeffalse |
| 37 | +#definefalse((bool) 0) |
| 38 | +#endif |
| 39 | +#endif/* not C++ */ |
| 40 | +#endif/* __BEOS__ */ |
| 41 | + |
| 42 | +#ifndef__BEOS__/* this shouldn't be required, but is is! */ |
| 43 | +typedefunsignedcharuint8;/* == 8 bits */ |
| 44 | +typedefunsigned shortuint16;/* == 16 bits */ |
| 45 | +typedefunsignedintuint32;/* == 32 bits */ |
| 46 | +#endif/* __BEOS__ */ |
| 47 | + |
| 48 | +externboolEncryptMD5(constchar*passwd,constchar*salt, |
| 49 | +size_tsalt_len,char*buf); |
| 50 | + |
| 51 | + |
| 52 | +#endif |