mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-21 14:00:51 +03:00
mbedTLS: Avoid multiple definition errors for context handles (#197)
This commit is contained in:
committed by
Will Cosgrove
parent
d04f9b2bd3
commit
498a5f5b3f
@@ -39,6 +39,14 @@
|
|||||||
|
|
||||||
#ifdef LIBSSH2_MBEDTLS /* compile only if we build with mbedtls */
|
#ifdef LIBSSH2_MBEDTLS /* compile only if we build with mbedtls */
|
||||||
|
|
||||||
|
/*******************************************************************/
|
||||||
|
/*
|
||||||
|
* mbedTLS backend: Global context handles
|
||||||
|
*/
|
||||||
|
|
||||||
|
static mbedtls_entropy_context _libssh2_mbedtls_entropy;
|
||||||
|
static mbedtls_ctr_drbg_context _libssh2_mbedtls_ctr_drbg;
|
||||||
|
|
||||||
/*******************************************************************/
|
/*******************************************************************/
|
||||||
/*
|
/*
|
||||||
* mbedTLS backend: Generic functions
|
* mbedTLS backend: Generic functions
|
||||||
|
|||||||
@@ -79,14 +79,6 @@
|
|||||||
#define _libssh2_ec_key void
|
#define _libssh2_ec_key void
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*******************************************************************/
|
|
||||||
/*
|
|
||||||
* mbedTLS backend: Global context handles
|
|
||||||
*/
|
|
||||||
|
|
||||||
mbedtls_entropy_context _libssh2_mbedtls_entropy;
|
|
||||||
mbedtls_ctr_drbg_context _libssh2_mbedtls_ctr_drbg;
|
|
||||||
|
|
||||||
/*******************************************************************/
|
/*******************************************************************/
|
||||||
/*
|
/*
|
||||||
* mbedTLS backend: Generic functions
|
* mbedTLS backend: Generic functions
|
||||||
|
|||||||
Reference in New Issue
Block a user