#229: static const EVP_CIPHER * make_ctr_evp (size_t keylen) in openssl.c
not threadsafe
-----------------------+----------------------
Reporter: engstrom | Owner: bagder
Type: defect | Status: assigned
Priority: normal | Milestone: 1.2.9
Component: API | Version: 1.3.0
Resolution: | Keywords:
Blocked By: | Blocks:
-----------------------+----------------------
Comment (by engstrom):
Ooops, sorry I shouldn't have put a "#include" inside of a function - the
_libssh2_init_cipher_structures() function in global.c should look like
this:
{{{
#!c
#ifndef LIBSSH2_LIBGCRYPT /* only need to initialize the cipher structures
if we build with OpenSSL */
#include "openssl.h"
#endif
static void
_libssh2_init_cipher_structures(void)
{
#ifndef LIBSSH2_LIBGCRYPT /* only need to initialize the cipher structures
if we build with OpenSSL */
_libssh2_init_EVP_aes_ctr();
#else
/* No need to initialize any structures if using libgcrypt */
#endif
}
}}}
-- Ticket URL: <http://trac.libssh2.org/ticket/229#comment:10> libssh2 <http://trac.libssh2.org/> C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2011-09-29