1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

OpenSSL EVP: fix threaded use of structs

Make sure we don't clear or reset static structs after first init so
that they work fine even when used from multiple threads. Init the
structs in the global init.

Help and assistance by: John Engstrom

Fixes #229 (again)
This commit is contained in:
Daniel Stenberg
2011-09-29 22:17:03 +02:00
parent 24afd0fc72
commit ee07785a1e
4 changed files with 21 additions and 5 deletions

View File

@@ -113,4 +113,6 @@ int _libssh2_pub_priv_keyfile(LIBSSH2_SESSION *session,
const char *privatekey,
const char *passphrase);
void _libssh2_init_aes_ctr(void);
#endif