mirror of
https://github.com/libp2p/go-openssl.git
synced 2025-04-23 17:40:31 +08:00
decrease required go version to 1.12
The error occurs when trying to build the library using go < 1.16: ./alloc.go:14:10: unrecognized Go type _Ctype_void ./alloc.go:16:21: unrecognized Go type _Ctype_void This is an unnecessary restriction. It can be fixed by replacing *C.void with unsafe.Pointer (as it is already done for `ptr` argument of CRYPTO_EX_free[1][2]). 1. https://www.openssl.org/docs/manmaster/man3/SSL_get_ex_new_index.html 2. https://www.openssl.org/docs/man3.0/man3/CRYPTO_EX_free.html Related to #18
This commit is contained in:
parent
0fadeb4d38
commit
a8e2e95d95
4
alloc.go
4
alloc.go
@ -11,9 +11,9 @@ import (
|
||||
|
||||
//export go_ssl_crypto_ex_free
|
||||
func go_ssl_crypto_ex_free(
|
||||
parent *C.void, ptr unsafe.Pointer,
|
||||
parent unsafe.Pointer, ptr unsafe.Pointer,
|
||||
cryptoData *C.CRYPTO_EX_DATA, idx C.int,
|
||||
argl C.long, argp *C.void,
|
||||
argl C.long, argp unsafe.Pointer,
|
||||
) {
|
||||
pointer.Unref(ptr)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user