forked from wekillpeople/browser-dumpwd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
firefox.h
54 lines (44 loc) · 1.17 KB
/
firefox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef __FIREFOX__
#define __FIREFOX__
#define NOMINMAX
#define PRBool int
#define PRUint32 unsigned int
#define PR_TRUE 1
#define PR_FALSE 0
typedef struct PK11SlotInfoStr PK11SlotInfo;
typedef enum _SECItemType
{
siBuffer = 0,
siClearDataBuffer = 1,
siCipherDataBuffer = 2,
siDERCertBuffer = 3,
siEncodedCertBuffer = 4,
siDERNameBuffer = 5,
siEncodedNameBuffer = 6,
siAsciiNameString = 7,
siAsciiString = 8,
siDEROID = 9,
siUnsignedInteger = 10,
siUTCTime = 11,
siGeneralizedTime = 12
}SECItemType;
typedef struct _SECItem
{
SECItemType type;
unsigned char *data;
unsigned int len;
}SECItem;
typedef enum _SECStatus {
SECWouldBlock = -2,
SECFailure = -1,
SECSuccess = 0
}SECStatus;
typedef DWORD(__cdecl *NSS_Init_p)(LPSTR strProfilePath);
typedef DWORD(__cdecl *NSS_Shutdown_p)();
typedef DWORD(__cdecl *PL_ArenaFinish_p)();
typedef DWORD(__cdecl *PR_Cleanup_p)();
typedef PK11SlotInfo *(__cdecl *PK11_GetInternalKeySlot_p)();
typedef DWORD(__cdecl *PK11_FreeSlot_p)(PK11SlotInfo*);
typedef DWORD(__cdecl *PK11SDR_Decrypt_p)(SECItem *pData, SECItem *pResult, LPVOID cx);
VOID dump_firefox_passwords();
#endif