mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Provide serialisation API only if it's enabled
This commit is contained in:
committed by
Jarno Lamsa
parent
5ea13b854a
commit
5c0e377532
@@ -11284,6 +11284,7 @@ void mbedtls_ssl_session_free( mbedtls_ssl_session *session )
|
||||
mbedtls_platform_zeroize( session, sizeof( mbedtls_ssl_session ) );
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_CONTEXT_SERIALIZATION)
|
||||
static unsigned char ssl_serialized_context_header[] = {
|
||||
MBEDTLS_VERSION_MAJOR,
|
||||
MBEDTLS_VERSION_MINOR,
|
||||
@@ -11829,6 +11830,7 @@ int mbedtls_ssl_context_load( mbedtls_ssl_context *context,
|
||||
|
||||
return( ret );
|
||||
}
|
||||
#endif /* MBEDTLS_SSL_CONTEXT_SERIALIZATION */
|
||||
|
||||
/*
|
||||
* Free an SSL context
|
||||
|
Reference in New Issue
Block a user