|
@@ -29,7 +29,7 @@ typedef struct {
|
|
* @param message the message to which the signature is supposed to belong.
|
|
* @param message the message to which the signature is supposed to belong.
|
|
* @param signature the signature of the message, that should be verified. */
|
|
* @param signature the signature of the message, that should be verified. */
|
|
UA_StatusCode (*verify)(const UA_SecurityPolicy *securityPolicy,
|
|
UA_StatusCode (*verify)(const UA_SecurityPolicy *securityPolicy,
|
|
- const void *channelContext, const UA_ByteString *message,
|
|
|
|
|
|
+ void *channelContext, const UA_ByteString *message,
|
|
const UA_ByteString *signature) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
|
|
const UA_ByteString *signature) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
|
|
|
|
|
|
/* Signs the given message using this policys signing algorithm and the
|
|
/* Signs the given message using this policys signing algorithm and the
|
|
@@ -44,7 +44,7 @@ typedef struct {
|
|
* necessary size can be acquired with the signatureSize
|
|
* necessary size can be acquired with the signatureSize
|
|
* attribute of this module. */
|
|
* attribute of this module. */
|
|
UA_StatusCode (*sign)(const UA_SecurityPolicy *securityPolicy,
|
|
UA_StatusCode (*sign)(const UA_SecurityPolicy *securityPolicy,
|
|
- const void *channelContext, const UA_ByteString *message,
|
|
|
|
|
|
+ void *channelContext, const UA_ByteString *message,
|
|
UA_ByteString *signature) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
|
|
UA_ByteString *signature) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
|
|
|
|
|
|
/* Gets the signature size that depends on the local (private) key.
|
|
/* Gets the signature size that depends on the local (private) key.
|
|
@@ -76,7 +76,7 @@ typedef struct {
|
|
* @param data the data that is encrypted. The encrypted data will overwrite
|
|
* @param data the data that is encrypted. The encrypted data will overwrite
|
|
* the data that was supplied. */
|
|
* the data that was supplied. */
|
|
UA_StatusCode(*encrypt)(const UA_SecurityPolicy *securityPolicy,
|
|
UA_StatusCode(*encrypt)(const UA_SecurityPolicy *securityPolicy,
|
|
- const void *channelContext,
|
|
|
|
|
|
+ void *channelContext,
|
|
UA_ByteString *data) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
|
|
UA_ByteString *data) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
|
|
|
|
|
|
/* Decrypts the given ciphertext in place using an asymmetric algorithm and
|
|
/* Decrypts the given ciphertext in place using an asymmetric algorithm and
|
|
@@ -87,7 +87,7 @@ typedef struct {
|
|
* the keys needed to decrypt the message.
|
|
* the keys needed to decrypt the message.
|
|
* @param data the data to decrypt. The decryption is done in place. */
|
|
* @param data the data to decrypt. The decryption is done in place. */
|
|
UA_StatusCode(*decrypt)(const UA_SecurityPolicy *securityPolicy,
|
|
UA_StatusCode(*decrypt)(const UA_SecurityPolicy *securityPolicy,
|
|
- const void *channelContext,
|
|
|
|
|
|
+ void *channelContext,
|
|
UA_ByteString *data) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
|
|
UA_ByteString *data) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
|
|
|
|
|
|
/* Returns the length of the key used locally to encrypt messages in bits
|
|
/* Returns the length of the key used locally to encrypt messages in bits
|