Lines Matching refs:store

253  XMLSEC_CRYPTO_EXPORT int		xmlSecNssKeysStoreAdoptKey	(xmlSecKeyStorePtr store,
255 +XMLSEC_CRYPTO_EXPORT int xmlSecNssKeysStoreAdoptKeySlot(xmlSecKeyStorePtr store,
257 XMLSEC_CRYPTO_EXPORT int xmlSecNssKeysStoreLoad (xmlSecKeyStorePtr store,
473 + * @hKeyStore: the pointer to key store.
476 + * Create and load key store and certificate database into keys manager
500 + * At present, MS Crypto engine do not provide a way to setup a key store.
503 + /*TODO: binding key store.*/
519 + * Add key store to manager, from now on keys manager destroys the store if
549 + * Set certificate databse to X509 key data store
552 + * At present, MS Crypto engine do not provide a way to setup a cert store.
884 + * Add key store to manager, from now on keys manager destroys the store if
914 + * Set certificate databse to X509 key data store
918 + * the certDB handler at present. I'll modify the cert store sources to
1188 - * Nss keys store that uses Simple Keys Store under the hood. Uses the
1189 - * Nss DB as a backing store for the finding keys, but the NSS DB is
1190 - * not written to by the keys store.
1191 - * So, if store->findkey is done and the key is not found in the simple
1192 - * keys store, the NSS DB is looked up.
1193 - * If store is called to adopt a key, that key is not written to the NSS
1205 + * NSS key store uses a key list and a slot list as the key repository. NSS slot
1209 + * Any key in the key list will not save to pkcs11 slot. When a store to called
1210 + * to adopt a key, the key is resident in the key list; While a store to called
1211 + * to set a is resident in the key list; While a store to called to set a slot
1219 + * user set up a slot list handler to the keys store, he do not need to do any
1222 + * store behaviors.
1226 + * 1. Create a keys store;( xmlSec interfaces )
1227 + * 2. Set slot list with the keys store;( xmlSec Interfaces )
1233 + * 8. Destroy the keys store;( xmlSec Interfaces )
1268 + * Internal NSS key store context
1286 -#define xmlSecNssKeysStoreGetSS(store) \
1287 - ((xmlSecKeyStoreCheckSize((store), xmlSecNssKeysStoreSize)) ? \
1288 - (xmlSecKeyStorePtr*)(((xmlSecByte*)(store)) + sizeof(xmlSecKeyStore)) : \
1291 -static int xmlSecNssKeysStoreInitialize (xmlSecKeyStorePtr store);
1292 -static void xmlSecNssKeysStoreFinalize (xmlSecKeyStorePtr store);
1293 -static xmlSecKeyPtr xmlSecNssKeysStoreFindKey (xmlSecKeyStorePtr store,
1303 + xmlSecKeyStorePtr store ,
1308 + xmlSecAssert2( xmlSecKeyStoreCheckId( store , xmlSecNssKeysStoreId ) , -1 ) ;
1309 + xmlSecAssert2( xmlSecKeyStoreCheckSize( store , xmlSecNssKeysStoreSize ) , -1 ) ;
1310 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1313 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1323 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1333 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1342 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1352 - BAD_CAST "NSS-keys-store", /* const xmlChar* name; */
1364 + xmlSecKeyStorePtr store ,
1369 + xmlSecAssert2( xmlSecKeyStoreCheckId( store , xmlSecNssKeysStoreId ) , -1 ) ;
1370 + xmlSecAssert2( xmlSecKeyStoreCheckSize( store , xmlSecNssKeysStoreSize ) , -1 ) ;
1372 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1375 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1385 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1395 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1404 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1414 - * The Nss list based keys store klass.
1420 + * @store: the store.
1422 + * Keys store specific initialization method.
1424 - * Returns: Nss list based keys store klass.
1432 + xmlSecKeyStorePtr store
1436 + xmlSecAssert2( xmlSecKeyStoreCheckId( store , xmlSecNssKeysStoreId ) , -1 ) ;
1437 + xmlSecAssert2( xmlSecKeyStoreCheckSize( store , xmlSecNssKeysStoreSize ) , -1 ) ;
1439 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1442 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1457 - * @store: the pointer to Nss keys store.
1460 - * Adds @key to the @store.
1464 + * @store: the store.
1466 + * Keys store specific finalization (destroy) method.
1469 -xmlSecNssKeysStoreAdoptKey(xmlSecKeyStorePtr store, xmlSecKeyPtr key) {
1472 - xmlSecAssert2(xmlSecKeyStoreCheckId(store, xmlSecNssKeysStoreId), -1);
1476 + xmlSecKeyStorePtr store
1480 + xmlSecAssert( xmlSecKeyStoreCheckId( store , xmlSecNssKeysStoreId ) ) ;
1481 + xmlSecAssert( xmlSecKeyStoreCheckSize( store , xmlSecNssKeysStoreSize ) ) ;
1483 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1486 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1639 - ss = xmlSecNssKeysStoreGetSS(store);
1647 + * @store: the store.
1651 + * Keys store specific find method. The caller is responsible for destroying
1658 + xmlSecKeyStorePtr store ,
1668 + xmlSecAssert2( xmlSecKeyStoreCheckId( store , xmlSecNssKeysStoreId ) , NULL ) ;
1669 + xmlSecAssert2( xmlSecKeyStoreCheckSize( store , xmlSecNssKeysStoreSize ) , NULL ) ;
1672 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1675 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1725 + xmlSecErrorsSafeString( xmlSecKeyStoreGetName( store ) ) ,
1756 + * The simple list based keys store klass.
1770 * @store: the pointer to Nss keys store.
1774 xmlSecNssKeysStoreSave(xmlSecKeyStorePtr store, const char *filename, xmlSecKeyDataType type) {
1789 xmlSecAssert2(xmlSecKeyStoreCheckId(store, xmlSecNssKeysStoreId), -1);
1792 - ss = xmlSecNssKeysStoreGetSS(store);
1800 -xmlSecNssKeysStoreInitialize(xmlSecKeyStorePtr store) {
1802 + xmlSecAssert2( xmlSecKeyStoreCheckSize( store , xmlSecNssKeysStoreSize ), -1 ) ;
1805 - xmlSecAssert2(xmlSecKeyStoreCheckId(store, xmlSecNssKeysStoreId), -1);
1806 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1809 - ss = xmlSecNssKeysStoreGetSS(store);
1822 xmlSecErrorsSafeString(xmlSecKeyStoreGetName(store)),
1835 -xmlSecNssKeysStoreFinalize(xmlSecKeyStorePtr store) {
1838 - xmlSecAssert(xmlSecKeyStoreCheckId(store, xmlSecNssKeysStoreId));
1840 - ss = xmlSecNssKeysStoreGetSS(store);
1847 -xmlSecNssKeysStoreFindKey(xmlSecKeyStorePtr store, const xmlChar* name,
1860 - xmlSecAssert2(xmlSecKeyStoreCheckId(store, xmlSecNssKeysStoreId), NULL);
1863 - ss = xmlSecNssKeysStoreGetSS(store);
1910 + xmlSecErrorsSafeString(xmlSecKeyStoreGetName(store)),
1931 + xmlSecErrorsSafeString(xmlSecKeyStoreGetName(store)),
2008 + xmlSecErrorsSafeString(xmlSecKeyStoreGetName(store)),
2024 + xmlSecErrorsSafeString(xmlSecKeyStoreGetName(store)),
2059 + xmlSecErrorsSafeString(xmlSecKeyStoreGetName(store)),
2100 + xmlSecErrorsSafeString(xmlSecKeyStoreGetName(store)),
4381 + * particular crypto device, a subclass of xmlSecList is used to store slot and
5664 static int xmlSecNssX509StoreInitialize (xmlSecKeyDataStorePtr store);
5665 static void xmlSecNssX509StoreFinalize (xmlSecKeyDataStorePtr store);