0.2.0-dev Download ZIP
30 lines ·537 B Raw
| 1 | /* |
| 2 | * Version information |
| 3 | * |
| 4 | * Copyright The Mbed TLS Contributors |
| 5 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
| 6 | */ |
| 7 | |
| 8 | #include "ssl_misc.h" |
| 9 | |
| 10 | #if defined(MBEDTLS_VERSION_C) |
| 11 | |
| 12 | #include "mbedtls/version.h" |
| 13 | #include <string.h> |
| 14 | |
| 15 | unsigned int mbedtls_version_get_number(void) |
| 16 | { |
| 17 | return MBEDTLS_VERSION_NUMBER; |
| 18 | } |
| 19 | |
| 20 | const char *mbedtls_version_get_string(void) |
| 21 | { |
| 22 | return MBEDTLS_VERSION_STRING; |
| 23 | } |
| 24 | |
| 25 | const char *mbedtls_version_get_string_full(void) |
| 26 | { |
| 27 | return MBEDTLS_VERSION_STRING_FULL; |
| 28 | } |
| 29 | |
| 30 | #endif /* MBEDTLS_VERSION_C */ |