Skip to content

API XMLSec OpenSSL KeysStore

Aleksey Sanin edited this page Jun 22, 2026 · 5 revisions

OpenSSL Keys Store

API Group: xmlsec_openssl_keysstore

OpenSSL-specific key store implementation.

OpenSSL keys store that uses Simple Keys Store under the hood.

Macros

xmlSecOpenSSLKeysStoreId

Defined as: xmlSecOpenSSLKeysStoreGetKlass()

Source: include/xmlsec/openssl/keysstore.h

A OpenSSL keys store klass id.


Functions

xmlSecOpenSSLKeysStoreGetKlass

xmlSecKeyStoreId xmlSecOpenSSLKeysStoreGetKlass(void);

Source: include/xmlsec/openssl/keysstore.h

The OpenSSL list based keys store klass.

Returns: OpenSSL list based keys store klass.


xmlSecOpenSSLKeysStoreAdoptKey

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.


xmlSecOpenSSLKeysStoreLoad

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.


xmlSecOpenSSLKeysStoreSave

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.


Clone this wiki locally