Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8774 rgimad 1
/*
2
 *  Version information
3
 *
4
 *  Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5
 *  SPDX-License-Identifier: GPL-2.0
6
 *
7
 *  This program is free software; you can redistribute it and/or modify
8
 *  it under the terms of the GNU General Public License as published by
9
 *  the Free Software Foundation; either version 2 of the License, or
10
 *  (at your option) any later version.
11
 *
12
 *  This program is distributed in the hope that it will be useful,
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 *  GNU General Public License for more details.
16
 *
17
 *  You should have received a copy of the GNU General Public License along
18
 *  with this program; if not, write to the Free Software Foundation, Inc.,
19
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
 *
21
 *  This file is part of mbed TLS (https://tls.mbed.org)
22
 */
23
 
24
#if !defined(MBEDTLS_CONFIG_FILE)
25
#include "mbedtls/config.h"
26
#else
27
#include MBEDTLS_CONFIG_FILE
28
#endif
29
 
30
#if defined(MBEDTLS_VERSION_C)
31
 
32
#include "mbedtls/version.h"
33
#include 
34
 
35
unsigned int mbedtls_version_get_number( void )
36
{
37
    return( MBEDTLS_VERSION_NUMBER );
38
}
39
 
40
void mbedtls_version_get_string( char *string )
41
{
42
    memcpy( string, MBEDTLS_VERSION_STRING,
43
            sizeof( MBEDTLS_VERSION_STRING ) );
44
}
45
 
46
void mbedtls_version_get_string_full( char *string )
47
{
48
    memcpy( string, MBEDTLS_VERSION_STRING_FULL,
49
            sizeof( MBEDTLS_VERSION_STRING_FULL ) );
50
}
51
 
52
#endif /* MBEDTLS_VERSION_C */