aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/keypair.h
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-09-02 15:29:09 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-09-02 15:29:09 +0200
commit4f13051f763cab3d431847305eff913e4bf9d77a (patch)
treebb20393d714ede1a0200653e2bddbbb694b56f16 /libcmix-crypto/keypair.h
parentdffdb1388991c5b5688139bfa093c8581a0f3a36 (diff)
downloadcmix-4f13051f763cab3d431847305eff913e4bf9d77a.tar.gz
cmix-4f13051f763cab3d431847305eff913e4bf9d77a.tar.bz2
cmix-4f13051f763cab3d431847305eff913e4bf9d77a.zip
Changed to api to be less repetative in use.
Diffstat (limited to 'libcmix-crypto/keypair.h')
-rw-r--r--libcmix-crypto/keypair.h11
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
}