mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Document BAD_INPUT_DATA error in key material exporter
Signed-off-by: Max Fillinger <maximilian.fillinger@foxcrypto.com>
This commit is contained in:
@ -10147,6 +10147,7 @@ int mbedtls_ssl_export_keying_material(mbedtls_ssl_context *ssl,
|
||||
const int use_context)
|
||||
{
|
||||
if (!mbedtls_ssl_is_handshake_over(ssl)) {
|
||||
/* TODO: Change this to a more appropriate error code when one is available. */
|
||||
return MBEDTLS_ERR_SSL_BAD_INPUT_DATA;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user