shanemhansen / gossl

Go bindings to the openssl library
MIT License
33 stars 5 forks source link

threads.go: wraps threads initialization in init() #22

Closed runcom closed 8 years ago

runcom commented 9 years ago

I'll reintroduce it whenever it's needed (given it will)

Signed-off-by: Antonio Murdaca runcom@redhat.com

shanemhansen commented 9 years ago

So from my reading of the openssl docs, this code is required to get thread safety. I believe something similar is done in pyopenssl.

https://github.com/msabramo/pyOpenSSL/blob/master/OpenSSL/crypto/crypto.c#L779

https://www.openssl.org/docs/manmaster/crypto/threads.html

runcom commented 9 years ago

my bad, I totally overlooked the fact that it was called globally, I have to call it in an init() function instead. Thanks

runcom commented 9 years ago

@shanemhansen updated

runcom commented 8 years ago

ping @shanemhansen