-
Notifications
You must be signed in to change notification settings - Fork 113
API XMLSec OpenSSL KeysStore
API Group: xmlsec_openssl_keysstore
OpenSSL-specific key store implementation.
OpenSSL keys store that uses Simple Keys Store under the hood.
Defined as: xmlSecOpenSSLKeysStoreGetKlass()
Source: include/xmlsec/openssl/keysstore.h
A OpenSSL keys store klass id.
xmlSecKeyStoreId xmlSecOpenSSLKeysStoreGetKlass(void);Source: include/xmlsec/openssl/keysstore.h
The OpenSSL list based keys store klass.
Returns: OpenSSL list based keys store klass.
int xmlSecOpenSSLKeysStoreAdoptKey(xmlSecKeyStorePtr store, xmlSecKeyPtr key);Source: include/xmlsec/openssl/keysstore.h
Adds key to the store.
Parameters:
-
store— the pointer to OpenSSL keys store. -
key— the pointer to key.
Returns: 0 on success or a negative value if an error occurs.
int xmlSecOpenSSLKeysStoreLoad(xmlSecKeyStorePtr store, const char *uri, xmlSecKeysMngrPtr keysMngr);Source: include/xmlsec/openssl/keysstore.h
Reads keys from an XML file.
Parameters:
-
store— the pointer to OpenSSL 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 xmlSecOpenSSLKeysStoreSave(xmlSecKeyStorePtr store, const char *filename, xmlSecKeyDataType type);Source: include/xmlsec/openssl/keysstore.h
Writes keys from store to an XML file.
Parameters:
-
store— the pointer to OpenSSL keys store. -
filename— the filename. -
type— the saved keys type (public, private, ...).
Returns: 0 on success or a negative value if an error occurs.