keypair.c (255B)
1 #include <stdlib.h> 2 /* #include <string.h> */ 3 4 #include "keypair.h" 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 void keypair_free(struct KeyPair *kp) { 11 free(kp->public_key); 12 free(kp->private_key); 13 free(kp); 14 } 15 16 #ifdef __cplusplus 17 } // extern "C" 18 #endif