OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 /* | 4 /* |
5 * This code defines the glue layer between softoken and the legacy DB library | 5 * This code defines the glue layer between softoken and the legacy DB library |
6 */ | 6 */ |
7 #include "sdb.h" | 7 #include "sdb.h" |
8 | 8 |
9 /* | 9 /* |
10 * function prototypes for the callbacks into softoken from the legacyDB | 10 * function prototypes for the callbacks into softoken from the legacyDB |
11 */ | 11 */ |
12 | 12 |
13 typedef SECStatus (*LGEncryptFunc)(PRArenaPool *arena, SDB *sdb, | 13 typedef SECStatus (*LGEncryptFunc)(PLArenaPool *arena, SDB *sdb, |
14 SECItem *plainText, SECItem **cipherText); | 14 SECItem *plainText, SECItem **cipherText); |
15 typedef SECStatus (*LGDecryptFunc)(SDB *sdb, SECItem *cipherText, | 15 typedef SECStatus (*LGDecryptFunc)(SDB *sdb, SECItem *cipherText, |
16 SECItem **plainText); | 16 SECItem **plainText); |
17 | 17 |
18 /* | 18 /* |
19 * function prototypes for the exported functions. | 19 * function prototypes for the exported functions. |
20 */ | 20 */ |
21 typedef CK_RV (*LGOpenFunc) (const char *dir, const char *certPrefix, | 21 typedef CK_RV (*LGOpenFunc) (const char *dir, const char *certPrefix, |
22 const char *keyPrefix, | 22 const char *keyPrefix, |
23 int certVersion, int keyVersion, int flags, | 23 int certVersion, int keyVersion, int flags, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 const char *filename, const char *dbname, | 70 const char *filename, const char *dbname, |
71 char **moduleSpecList, PRBool rw); | 71 char **moduleSpecList, PRBool rw); |
72 SECStatus sftkdbCall_DeleteSecmodDB(const char *appName, | 72 SECStatus sftkdbCall_DeleteSecmodDB(const char *appName, |
73 const char *filename, const char *dbname, | 73 const char *filename, const char *dbname, |
74 char *args, PRBool rw); | 74 char *args, PRBool rw); |
75 SECStatus sftkdbCall_AddSecmodDB(const char *appName, | 75 SECStatus sftkdbCall_AddSecmodDB(const char *appName, |
76 const char *filename, const char *dbname, | 76 const char *filename, const char *dbname, |
77 char *module, PRBool rw); | 77 char *module, PRBool rw); |
78 CK_RV sftkdbCall_Shutdown(void); | 78 CK_RV sftkdbCall_Shutdown(void); |
79 | 79 |
OLD | NEW |