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