mirror of
https://github.com/libp2p/go-openssl.git
synced 2024-12-27 23:40:18 +08:00
make cbioFree not a go callback
i have reason to believe this breaks things
This commit is contained in:
parent
2bf5553cf8
commit
05477109fd
9
bio.go
9
bio.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user