aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/signers/signer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/crypto/signers/signer.h')
-rw-r--r--src/libstrongswan/crypto/signers/signer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/signers/signer.h b/src/libstrongswan/crypto/signers/signer.h
index c6870e475..14b65ca0d 100644
--- a/src/libstrongswan/crypto/signers/signer.h
+++ b/src/libstrongswan/crypto/signers/signer.h
@@ -102,8 +102,10 @@ struct signer_t {
*
* @param data a chunk containing the data to sign
* @param chunk chunk which will hold the allocated signature
+ * @return TRUE if signature allocated successfully
*/
- void (*allocate_signature) (signer_t *this, chunk_t data, chunk_t *chunk);
+ __attribute__((warn_unused_result))
+ bool (*allocate_signature) (signer_t *this, chunk_t data, chunk_t *chunk);
/**
* Verify a signature.