Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: nss/lib/softoken/lgglue.h

Issue 2078763002: Delete bundled copy of NSS and replace with README. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss@master
Patch Set: Delete bundled copy of NSS and replace with README. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « nss/lib/softoken/jpakesftk.c ('k') | nss/lib/softoken/lgglue.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 /*
5 * This code defines the glue layer between softoken and the legacy DB library
6 */
7 #include "sdb.h"
8
9 /*
10 * function prototypes for the callbacks into softoken from the legacyDB
11 */
12
13 typedef SECStatus (*LGEncryptFunc)(PLArenaPool *arena, SDB *sdb,
14 SECItem *plainText, SECItem **cipherText);
15 typedef SECStatus (*LGDecryptFunc)(SDB *sdb, SECItem *cipherText,
16 SECItem **plainText);
17
18 /*
19 * function prototypes for the exported functions.
20 */
21 typedef CK_RV (*LGOpenFunc) (const char *dir, const char *certPrefix,
22 const char *keyPrefix,
23 int certVersion, int keyVersion, int flags,
24 SDB **certDB, SDB **keyDB);
25 typedef char ** (*LGReadSecmodFunc)(const char *appName,
26 const char *filename,
27 const char *dbname, char *params, PRBool rw);
28 typedef SECStatus (*LGReleaseSecmodFunc)(const char *appName,
29 const char *filename,
30 const char *dbname, char **params, PRBool rw);
31 typedef SECStatus (*LGDeleteSecmodFunc)(const char *appName,
32 const char *filename,
33 const char *dbname, char *params, PRBool rw);
34 typedef SECStatus (*LGAddSecmodFunc)(const char *appName,
35 const char *filename,
36 const char *dbname, char *params, PRBool rw);
37 typedef SECStatus (*LGShutdownFunc)(PRBool forked);
38 typedef void (*LGSetForkStateFunc)(PRBool);
39 typedef void (*LGSetCryptFunc)(LGEncryptFunc, LGDecryptFunc);
40
41 extern CK_RV legacy_Open(const char *dir, const char *certPrefix,
42 const char *keyPrefix,
43 int certVersion, int keyVersion, int flags,
44 SDB **certDB, SDB **keyDB);
45 extern char ** legacy_ReadSecmodDB(const char *appName,
46 const char *filename,
47 const char *dbname, char *params, PRBool rw);
48 extern SECStatus legacy_ReleaseSecmodDBData(const char *appName,
49 const char *filename,
50 const char *dbname, char **params, PRBool rw);
51 extern SECStatus legacy_DeleteSecmodDB(const char *appName,
52 const char *filename,
53 const char *dbname, char *params, PRBool rw);
54 extern SECStatus legacy_AddSecmodDB(const char *appName,
55 const char *filename,
56 const char *dbname, char *params, PRBool rw);
57 extern SECStatus legacy_Shutdown(PRBool forked);
58 extern void legacy_SetCryptFunctions(LGEncryptFunc, LGDecryptFunc);
59
60 /*
61 * Softoken Glue Functions
62 */
63 CK_RV sftkdbCall_open(const char *dir, const char *certPrefix,
64 const char *keyPrefix,
65 int certVersion, int keyVersion, int flags, PRBool isFIPS,
66 SDB **certDB, SDB **keyDB);
67 char ** sftkdbCall_ReadSecmodDB(const char *appName, const char *filename,
68 const char *dbname, char *params, PRBool rw);
69 SECStatus sftkdbCall_ReleaseSecmodDBData(const char *appName,
70 const char *filename, const char *dbname,
71 char **moduleSpecList, PRBool rw);
72 SECStatus sftkdbCall_DeleteSecmodDB(const char *appName,
73 const char *filename, const char *dbname,
74 char *args, PRBool rw);
75 SECStatus sftkdbCall_AddSecmodDB(const char *appName,
76 const char *filename, const char *dbname,
77 char *module, PRBool rw);
78 CK_RV sftkdbCall_Shutdown(void);
79
OLDNEW
« no previous file with comments | « nss/lib/softoken/jpakesftk.c ('k') | nss/lib/softoken/lgglue.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698