spacemonkeygo / openssl

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

Error building: conn.setSession undefined (type *Conn has no field or method setSession) #72

Open funkenstrahlen opened 7 years ago

funkenstrahlen commented 7 years ago

I have a problem building mongodb using linuxbrew. It crashes when it tries to build this module.

Building bsondump...
# github.com/spacemonkeygo/openssl
vendor/src/github.com/spacemonkeygo/openssl/net.go:121: conn.setSession undefined (type *Conn has no field or method setSession)
vendor/src/github.com/spacemonkeygo/openssl/net.go:128: conn.SetTlsExtHostName undefined (type *Conn has no field or method SetTlsExtHostName)

Do you have any idea what's causing the problem?

See this related issue for full log: https://github.com/Linuxbrew/homebrew-core/issues/1892

zeebo commented 7 years ago

Maybe the downstream people who stuck the code in the vendor folder missed some updated files? The conn.setSession method was added in 4d3c3b16ef613e640d553be49fb1cfd95492a6e0, but SetTlsExtHostName was there from the first time we open sourced it.

Perhaps they've made some changes? I honestly don't know.