From 05477109fd870990155ef0806ab04e91312412f1 Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 28 May 2014 20:23:19 -0400 Subject: [PATCH] make cbioFree not a go callback i have reason to believe this breaks things --- bio.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bio.go b/bio.go index d012e99..1be93aa 100644 --- a/bio.go +++ b/bio.go @@ -21,7 +21,9 @@ package openssl #include 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