Skip to content

API XMLSec GnuTLS KeysStore

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

GnuTLS Keys Store

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.

Macros

xmlSecGnuTLSKeysStoreId

Defined as: xmlSecGnuTLSKeysStoreGetKlass()

Source: include/xmlsec/gnutls/keysstore.h

A GnuTLS keys store klass id.


Functions

xmlSecGnuTLSKeysStoreGetKlass

xmlSecKeyStoreId xmlSecGnuTLSKeysStoreGetKlass(void);

Source: include/xmlsec/gnutls/keysstore.h

The GnuTLS list based keys store klass.

Returns: GnuTLS list based keys store klass.


xmlSecGnuTLSKeysStoreAdoptKey

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.


xmlSecGnuTLSKeysStoreLoad

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.


xmlSecGnuTLSKeysStoreSave

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.


Clone this wiki locally