|
|
1.1.1.9 ! root 1: /* ! 2: Legal Notice: The source code contained in this file has been derived from ! 3: the source code of Encryption for the Masses 2.02a, which is Copyright (c) ! 4: Paul Le Roux and which is covered by the 'License Agreement for Encryption ! 5: for the Masses'. Modifications and additions to that source code contained ! 6: in this file are Copyright (c) TrueCrypt Foundation and are covered by the ! 7: TrueCrypt License 2.2 the full text of which is contained in the file ! 8: License.txt included in TrueCrypt binary and source code distribution ! 9: packages. */ 1.1 root 10: 1.1.1.9 ! root 11: #ifndef PASSWORD_H ! 12: #define PASSWORD_H 1 1.1 root 13: 1.1.1.9 ! root 14: // User text input limits ! 15: #define MIN_PASSWORD 1 // Minimum password length ! 16: #define MAX_PASSWORD 64 // Maximum password length ! 17: ! 18: #define PASSWORD_LEN_WARNING 12 // Display a warning when a password is shorter than this ! 19: ! 20: #ifdef __cplusplus ! 21: extern "C" { ! 22: #endif ! 23: ! 24: typedef struct ! 25: { ! 26: int Length; ! 27: unsigned char Text[MAX_PASSWORD + 1]; ! 28: } Password; ! 29: ! 30: #if defined(_WIN32) && !defined(NT4_DRIVER) 1.1 root 31: 1.1.1.6 root 32: void VerifyPasswordAndUpdate ( HWND hwndDlg , HWND hButton , HWND hPassword , HWND hVerify , char *szPassword , char *szVerify, BOOL keyFilesEnabled ); 33: BOOL CheckPasswordLength (HWND hwndDlg, HWND hwndItem); 34: BOOL CheckPasswordCharEncoding (HWND hPassword, Password *ptrPw); 35: int ChangePwd (char *lpszVolume, Password *oldPassword, Password *newPassword, int pkcs5, HWND hwndDlg); 1.1.1.9 ! root 36: ! 37: #endif ! 38: ! 39: #ifdef __cplusplus ! 40: } ! 41: #endif ! 42: ! 43: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.