root/main/trunk/greenstone2/common-src/src/getpw/crypt_util.h @ 26651

Revision 26647, 355 bytes (checked in by davidb, 7 years ago)

Introduction of open-source code that implements the crypt() algorithm to make Greenstone code more portable. Motivation for adding this in came from work with cross-compiling (using mingw under Ubuntu for generating Windows native binaries)

Line 
1#ifndef CRYPT_UTIL_H
2#define CRYPT_UTIL_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8void setup_salt(char *s);
9
10void mk_keytab(char *key);
11
12#ifdef DEBUG
13void pr_bits(unsigned long *a, unsigned long n);
14#endif
15
16char *output_conversion(unsigned long l1,unsigned long l2,
17            unsigned long r1,unsigned long r2, char *salt);
18
19#ifdef __cplusplus
20}
21#endif
22
23#endif
Note: See TracBrowser for help on using the browser.