mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-09 03:04:24 +02:00
Simplify runtime version info string methods
Return a const char* instead of taking a char* as an argument. This aligns us with the interface used in TF PSA Crypto. Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
@@ -32,23 +32,14 @@ extern "C" {
|
||||
unsigned int mbedtls_version_get_number(void);
|
||||
|
||||
/**
|
||||
* Get the version string ("x.y.z").
|
||||
*
|
||||
* \param string The string that will receive the value.
|
||||
* (Should be at least 9 bytes in size)
|
||||
* Get a pointer to the version string ("x.y.z").
|
||||
*/
|
||||
void mbedtls_version_get_string(char *string);
|
||||
const char *mbedtls_version_get_string(void);
|
||||
|
||||
/**
|
||||
* Get the full version string ("Mbed TLS x.y.z").
|
||||
*
|
||||
* \param string The string that will receive the value. The Mbed TLS version
|
||||
* string will use 18 bytes AT MOST including a terminating
|
||||
* null byte.
|
||||
* (So the buffer should be at least 18 bytes to receive this
|
||||
* version string).
|
||||
* Get a pointer to the full version string ("Mbed TLS x.y.z").
|
||||
*/
|
||||
void mbedtls_version_get_string_full(char *string);
|
||||
const char *mbedtls_version_get_string_full(void);
|
||||
|
||||
/**
|
||||
* \brief Check if support for a feature was compiled into this
|
||||
|
||||
Reference in New Issue
Block a user