diff options
Diffstat (limited to 'libcmix-crypto/keypair.h')
| -rw-r--r-- | libcmix-crypto/keypair.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libcmix-crypto/keypair.h b/libcmix-crypto/keypair.h index df5ec88..9587db3 100644 --- a/libcmix-crypto/keypair.h +++ b/libcmix-crypto/keypair.h @@ -6,24 +6,13 @@ extern "C" { #include <stdlib.h> -struct KeyPair; - -typedef void(*KeyPairDeleter)(struct KeyPair*); - -void keypair_deleter(struct KeyPair* p) ; - struct KeyPair { unsigned char* sec; unsigned char* pub; unsigned int sec_len; unsigned int pub_len; - KeyPairDeleter deleter; }; -void keypair_deleter(struct KeyPair* p) { - free(p->sec); - free(p->pub); -} #ifdef __cplusplus } |
