-
Notifications
You must be signed in to change notification settings - Fork 113
API XMLSec GnuTLS KeysStore
API Group: xmlsec_gnutls_keysstore
GnuTLS-specific key store implementation.
Keys store implementation for GNUTLS. GnuTLS keys store that uses Simple Keys Store under the hood.
Defined as: xmlSecGnuTLSKeysStoreGetKlass()
Source: include/xmlsec/gnutls/keysstore.h
A GnuTLS keys store klass id.
xmlSecKeyStoreId xmlSecGnuTLSKeysStoreGetKlass(void);Source: include/xmlsec/gnutls/keysstore.h
The GnuTLS list based keys store klass.
Returns: GnuTLS list based keys store klass.
int xmlSecGnuTLSKeysStoreAdoptKey(xmlSecKeyStorePtr store, xmlSecKeyPtr key);Source: include/xmlsec/gnutls/keysstore.h
Adds key to the store.
Parameters:
-
store— the pointer to GnuTLS keys store. -
key— the pointer to key.
Returns: 0 on success or a negative value if an error occurs.
int xmlSecGnuTLSKeysStoreLoad(xmlSecKeyStorePtr store, const char *uri, xmlSecKeysMngrPtr keysMngr);Source: include/xmlsec/gnutls/keysstore.h
Reads keys from an XML file.
Parameters:
-
store— the pointer to GnuTLS keys store. -
uri— the filename. -
keysMngr— the pointer to associated keys manager.
Returns: 0 on success or a negative value if an error occurs.
int xmlSecGnuTLSKeysStoreSave(xmlSecKeyStorePtr store, const char *filename, xmlSecKeyDataType type);Source: include/xmlsec/gnutls/keysstore.h
Writes keys from store to an XML file.
Parameters:
-
store— the pointer to GnuTLS keys store. -
filename— the filename. -
type— the saved keys type (public, private, ...).
Returns: 0 on success or a negative value if an error occurs.