Go to the documentation of this file.
27 #ifndef SOPC_KEY_CERT_PAIR_H
28 #define SOPC_KEY_CERT_PAIR_H
63 const char* privateKeyPath,
80 const unsigned char* certificate,
82 const unsigned char* privateKey,
99 uintptr_t updateParam);
119 size_t certificateNbBytes,
120 const unsigned char* certificate,
122 const unsigned char* privateKey);
197 const unsigned char* certificate,
SOPC_ReturnStatus SOPC_KeyCertPair_CreateFromBytes(size_t certificateNbBytes, const unsigned char *certificate, size_t keyNbBytes, const unsigned char *privateKey, SOPC_KeyCertPair **ppKeyCertPair)
Creates a private key / certificate pair from bytes arrays.
The signed public key representation.
Definition: key_manager_cyclone.h:60
The SOPC_KeyManager provides an API for Asymmetric Key Management such as loading signed public keys ...
SOPC_ReturnStatus SOPC_KeyCertPair_CreateCertHolderFromPath(const char *certPath, SOPC_CertHolder **ppCertHolder)
Creates a certificate holder from file path.
SOPC_ReturnStatus SOPC_KeyCertPair_CreateFromPaths(const char *certPath, const char *privateKeyPath, char *keyPassword, SOPC_KeyCertPair **ppKeyCertPair)
Creates a private key / certificate pair from file paths. The private key decryption password shall b...
void SOPC_KeyCertPairUpdateCb(uintptr_t updateParam)
Type of the callback triggered on key / certificate update.
Definition: sopc_key_cert_pair.h:46
void SOPC_KeyCertPair_Delete(SOPC_KeyCertPair **ppKeyCertPair)
Clears and frees the key / certificate pair and set pointer to NULL.
SOPC_ReturnStatus SOPC_KeyCertPair_GetSerializedCertCopy(SOPC_KeyCertPair *keyCertPair, SOPC_SerializedCertificate **ppCertCopy)
Gets a copy of the serialized certificate contained in the key /certificate pair.
Bytes buffer structure.
Definition: sopc_buffer.h:38
struct SOPC_KeyCertPair SOPC_KeyCertPair
An abstract structure used to store a pair of private key and certificate.
Definition: sopc_key_cert_pair.h:39
The asymmetric key representation.
Definition: key_manager_cyclone.h:42
SOPC_ReturnStatus SOPC_KeyCertPair_UpdateFromBytes(SOPC_KeyCertPair *keyCertPair, size_t certificateNbBytes, const unsigned char *certificate, size_t keyNbBytes, const unsigned char *privateKey)
Updates the private key and/or certificate of the pair from bytes arrays. If the certificate uses the...
SOPC_ReturnStatus SOPC_KeyCertPair_GetKeyCopy(SOPC_KeyCertPair *keyCertPair, SOPC_AsymmetricKey **ppKeyCopy)
Gets a copy of the private key contained in the key /certificate pair.
SOPC_ReturnStatus SOPC_KeyCertPair_GetCertCopy(SOPC_KeyCertPair *keyCertPair, SOPC_CertificateList **ppCertCopy)
Gets a copy of the certificate contained in the key /certificate pair.
SOPC_ReturnStatus SOPC_KeyCertPair_CreateCertHolderFromBytes(size_t certificateNbBytes, const unsigned char *certificate, SOPC_CertHolder **ppCertHolder)
Creates a certificate holder from bytes arrays.
SOPC_ReturnStatus SOPC_KeyCertPair_SetUpdateCb(SOPC_KeyCertPair *keyCertPair, SOPC_KeyCertPairUpdateCb *updateCb, uintptr_t updateParam)
Defines the callback to be called when a key/certificate update is done with SOPC_KeyCertPair_UpdateF...
SOPC_KeyCertPair SOPC_CertHolder
An abstract structure used to store a certificate in a thread-safe context.
Definition: sopc_key_cert_pair.h:168
SOPC_ReturnStatus
Definition: libs2opc_client.h:64