projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add more __attribute__((malloc)) where appropriate.
[tinc]
/
src
/
rsagen.h
diff --git
a/src/rsagen.h
b/src/rsagen.h
index
3f9c824
..
84cd0bb
100644
(file)
--- a/
src/rsagen.h
+++ b/
src/rsagen.h
@@
-22,7
+22,7
@@
#include "rsa.h"
#include "rsa.h"
-extern rsa_t *rsa_generate(size_t bits, unsigned long exponent);
+extern rsa_t *rsa_generate(size_t bits, unsigned long exponent)
__attribute__ ((__malloc__))
;
extern bool rsa_write_pem_public_key(rsa_t *rsa, FILE *fp);
extern bool rsa_write_pem_private_key(rsa_t *rsa, FILE *fp);
extern bool rsa_write_pem_public_key(rsa_t *rsa, FILE *fp);
extern bool rsa_write_pem_private_key(rsa_t *rsa, FILE *fp);