spacemonkeygo / openssl

OpenSSL bindings for Go
http://godoc.org/github.com/spacemonkeygo/openssl
Apache License 2.0
472 stars 237 forks source link

fix compilation for later openssl #26

Closed scottjg closed 9 years ago

scottjg commented 9 years ago

in later openssl, the key param in EVP_PKEY_assign changed from char* to void*. causes this error:

../github.com/spacemonkeygo/openssl/key.go:324: cannot use
(*C.char)(unsafe.Pointer(rsa)) (type *C.char) as type unsafe.Pointer in
argument to _Cfunc_EVP_PKEY_assign

this fix adds a shim function in C, where the char* can be automatically coerced into void*

thepaul commented 9 years ago

+1

zeebo commented 9 years ago

Thanks. :+1: