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 * The following code handles the storage of PKCS 11 modules used by the | 5 * The following code handles the storage of PKCS 11 modules used by the |
6 * NSS. This file is written to abstract away how the modules are | 6 * NSS. This file is written to abstract away how the modules are |
7 * stored so we can deside that later. | 7 * stored so we can deside that later. |
8 */ | 8 */ |
9 #include "sftkdb.h" | 9 #include "sftkdb.h" |
10 #include "sftkdbti.h" | 10 #include "sftkdbti.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 return lib; | 162 return lib; |
163 } | 163 } |
164 #endif /* STATIC LIBRARIES */ | 164 #endif /* STATIC LIBRARIES */ |
165 | 165 |
166 /* | 166 /* |
167 * stub files for legacy db's to be able to encrypt and decrypt | 167 * stub files for legacy db's to be able to encrypt and decrypt |
168 * various keys and attributes. | 168 * various keys and attributes. |
169 */ | 169 */ |
170 static SECStatus | 170 static SECStatus |
171 sftkdb_encrypt_stub(PRArenaPool *arena, SDB *sdb, SECItem *plainText, | 171 sftkdb_encrypt_stub(PLArenaPool *arena, SDB *sdb, SECItem *plainText, |
172 SECItem **cipherText) | 172 SECItem **cipherText) |
173 { | 173 { |
174 SFTKDBHandle *handle = sdb->app_private; | 174 SFTKDBHandle *handle = sdb->app_private; |
175 SECStatus rv; | 175 SECStatus rv; |
176 | 176 |
177 if (handle == NULL) { | 177 if (handle == NULL) { |
178 return SECFailure; | 178 return SECFailure; |
179 } | 179 } |
180 | 180 |
181 /* if we aren't the key handle, try the other handle */ | 181 /* if we aren't the key handle, try the other handle */ |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 legacy_glue_readSecmod = NULL; | 449 legacy_glue_readSecmod = NULL; |
450 legacy_glue_releaseSecmod = NULL; | 450 legacy_glue_releaseSecmod = NULL; |
451 legacy_glue_deleteSecmod = NULL; | 451 legacy_glue_deleteSecmod = NULL; |
452 legacy_glue_addSecmod = NULL; | 452 legacy_glue_addSecmod = NULL; |
453 legacy_glue_libCheckFailed = PR_FALSE; | 453 legacy_glue_libCheckFailed = PR_FALSE; |
454 legacy_glue_libCheckSucceeded = PR_FALSE; | 454 legacy_glue_libCheckSucceeded = PR_FALSE; |
455 return crv; | 455 return crv; |
456 } | 456 } |
457 | 457 |
458 | 458 |
OLD | NEW |