make cbioFree not a go callback

i have reason to believe this breaks things
This commit is contained in:
Jeff 2014-05-28 20:23:19 -04:00
parent 2bf5553cf8
commit 05477109fd

9
bio.go
View File

@ -21,7 +21,9 @@ package openssl
#include <openssl/bio.h>
extern int cbioNew(BIO *b);
extern int cbioFree(BIO *b);
static int cbioFree(BIO *b) {
return 1;
}
extern int writeBioWrite(BIO *b, char *buf, int size);
extern long writeBioCtrl(BIO *b, int cmd, long arg1, void *arg2);
@ -97,11 +99,6 @@ func cbioNew(b *C.BIO) C.int {
return 1
}
//export cbioFree
func cbioFree(b *C.BIO) C.int {
return 1
}
type writeBio struct {
data_mtx sync.Mutex
op_mtx sync.Mutex