xmlsec_private.h File Reference

Typedef xmlSecCryptoInitMethod

typedef int(* xmlSecCryptoInitMethod

Default 'http://' protocol callbacks Default 'ftp://' protocol callbacks xmlSecCryptoInitMethod:

xmlsec-crypto libraryinitialization method.

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoShutdownMethod

typedef int(* xmlSecCryptoShutdownMethod

xmlSecCryptoShutdownMethod:

xmlsec-crypto library shutdown method.

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoKeysMngrInitMethod

typedef int(* xmlSecCryptoKeysMngrInitMethod

xmlSecCryptoKeysMngrInitMethod: : the pointer to keys manager.

Initializes with xmlsec-crypto library specific data.

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoKeyDataGetKlassMethod

typedef xmlSecKeyDataId (* xmlSecCryptoKeyDataGetKlassMethod

xmlSecCryptoKeyDataGetKlassMethod:

Gets the key data klass.

Returns pointer to key data klass or NULL if an error occurs (the xmlsec-crypto library is not loaded or this key data klass is not implemented).

Typedef xmlSecCryptoKeyDataStoreGetKlassMethod

typedef xmlSecKeyDataStoreId (* xmlSecCryptoKeyDataStoreGetKlassMethod

xmlSecCryptoKeyDataStoreGetKlassMethod:

Gets the key data store klass.

Returns pointer to key data store klass or NULL if an error occurs (the xmlsec-crypto library is not loaded or this key data store klass is not implemented).

Typedef xmlSecCryptoTransformGetKlassMethod

typedef xmlSecTransformId (* xmlSecCryptoTransformGetKlassMethod

xmlSecCryptoTransformGetKlassMethod:

Gets the transform klass.

Returns pointer to transform klass or NULL if an error occurs (the xmlsec-crypto library is not loaded or this transform is not implemented).

Typedef xmlSecCryptoAppInitMethod

typedef int(* xmlSecCryptoAppInitMethod

xmlSecCryptoAppInitMethod: : the path to crypto library configuration.

General crypto engine initialization. This function is used by XMLSec command line utility and called before function.

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoAppShutdownMethod

typedef int(* xmlSecCryptoAppShutdownMethod

xmlSecCryptoAppShutdownMethod:

General crypto engine shutdown. This function is used by XMLSec command line utility and called after function.

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoAppDefaultKeysMngrInitMethod

typedef int(* xmlSecCryptoAppDefaultKeysMngrInitMethod

xmlSecCryptoAppDefaultKeysMngrInitMethod: : the pointer to keys manager.

Initializes with simple keys store xmlSecSimpleKeysStoreId and a default crypto key data stores.

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoAppDefaultKeysMngrAdoptKeyMethod

typedef int(* xmlSecCryptoAppDefaultKeysMngrAdoptKeyMethod

xmlSecCryptoAppDefaultKeysMngrAdoptKeyMethod: : the pointer to keys manager. : the pointer to key.

Adds to the keys manager created with xmlSecCryptoAppDefaultKeysMngrInit function.

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoAppDefaultKeysMngrLoadMethod

typedef int(* xmlSecCryptoAppDefaultKeysMngrLoadMethod

xmlSecCryptoAppDefaultKeysMngrLoadMethod: : the pointer to keys manager. : the uri.

Loads XML keys file from to the keys manager created with xmlSecCryptoAppDefaultKeysMngrInit function.

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoAppDefaultKeysMngrSaveMethod

typedef int(* xmlSecCryptoAppDefaultKeysMngrSaveMethod

xmlSecCryptoAppDefaultKeysMngrSaveMethod: : the pointer to keys manager. : the destination filename. : the type of keys to save (public/private/symmetric).

Saves keys from to XML keys file.

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoAppKeysMngrCertLoadMethod

typedef int(* xmlSecCryptoAppKeysMngrCertLoadMethod

xmlSecCryptoAppKeysMngrCertLoadMethod: : the keys manager. : the certificate file. : the certificate file format. : the flag that indicates is the certificate in trusted or not.

Reads cert from and adds to the list of trusted or known untrusted certs in .

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoAppKeysMngrCertLoadMemoryMethod

typedef int(* xmlSecCryptoAppKeysMngrCertLoadMemoryMethod

xmlSecCryptoAppKeysMngrCertLoadMemoryMethod: : the keys manager. : the key data. : the key data size. : the certificate format. : the flag that indicates is the certificate in trusted or not.

Reads cert from and adds to the list of trusted or known untrusted certs in .

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoAppKeyLoadMethod

typedef xmlSecKeyPtr (* xmlSecCryptoAppKeyLoadMethod

xmlSecCryptoAppKeyLoadMethod: : the key filename. : the key file format. : the key file password. : the key password callback. : the user context for password callback.

Reads key from the a file.

Returns pointer to the key or NULL if an error occurs.

Typedef xmlSecCryptoAppKeyLoadWithNameMethod

typedef xmlSecKeyPtr (* xmlSecCryptoAppKeyLoadWithNameMethod

xmlSecCryptoAppKeyLoadMethod: : the key filename. : the key file format. : the key file password. : the key password callback. : the user context for password callback.

Reads key from the a file.

Returns pointer to the key or NULL if an error occurs.

Typedef xmlSecCryptoAppKeyLoadMemoryMethod

typedef xmlSecKeyPtr (* xmlSecCryptoAppKeyLoadMemoryMethod

xmlSecCryptoAppKeyLoadMemoryMethod: : the key data. : the key data size. : the key data format. : the key data password. : the key password callback. : the user context for password callback.

Reads key from the binary data buffer.

Returns pointer to the key or NULL if an error occurs.

Typedef xmlSecCryptoAppPkcs12LoadMethod

typedef xmlSecKeyPtr (* xmlSecCryptoAppPkcs12LoadMethod

xmlSecCryptoAppPkcs12LoadMethod: : the PKCS12 key filename. : the PKCS12 file password. : the password callback. : the user context for password callback.

Reads key and all associated certificates from the PKCS12 file. For uniformity, call xmlSecCryptoAppKeyLoad instead of this function. Pass in format=xmlSecKeyDataFormatPkcs12.

Returns pointer to the key or NULL if an error occurs.

Typedef xmlSecCryptoAppPkcs12LoadMemoryMethod

typedef xmlSecKeyPtr (* xmlSecCryptoAppPkcs12LoadMemoryMethod

xmlSecCryptoAppPkcs12LoadMemoryMethod: : the pkcs12 data. : the pkcs12 data size. : the PKCS12 data password. : the password callback. : the user context for password callback.

Reads key and all associated certificates from the PKCS12 binary data. For uniformity, call xmlSecCryptoAppKeyLoad instead of this function. Pass in format=xmlSecKeyDataFormatPkcs12.

Returns pointer to the key or NULL if an error occurs.

Typedef xmlSecCryptoAppKeyCertLoadMethod

typedef int(* xmlSecCryptoAppKeyCertLoadMethod

xmlSecCryptoAppKeyCertLoadMethod: : the pointer to key. : the certificate filename. : the certificate file format.

Reads the certificate from $ and adds it to key.

Returns 0 on success or a negative value otherwise.

Typedef xmlSecCryptoAppKeyCertLoadMemoryMethod

typedef int(* xmlSecCryptoAppKeyCertLoadMemoryMethod

xmlSecCryptoAppKeyCertLoadMemoryMethod: : the pointer to key. : the cert data. : the cert data size. : the certificate data format.

Reads the certificate from binary buffer and adds it to key.

Returns 0 on success or a negative value otherwise.