blob: e7369eb432961695b2a6499ccca9cf4b0d467866 [file] [log] [blame]
Paul Bakker3ac1b2d2010-06-18 22:47:29 +00001/*
2 * Version information
3 *
Paul Bakker84f12b72010-07-18 10:13:04 +00004 * Copyright (C) 2006-2010, Brainspark B.V.
5 * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
Paul Bakker3ac1b2d2010-06-18 22:47:29 +00006 * All rights reserved.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22
23#include "polarssl/config.h"
24
25#if defined(POLARSSL_VERSION_C)
26
27#include "polarssl/version.h"
28#include <string.h>
29
30const char version[] = POLARSSL_VERSION_STRING;
31
32unsigned int version_get_number()
33{
34 return POLARSSL_VERSION_NUMBER;
35}
36
37void version_get_string( char *string )
38{
39 memcpy( string, POLARSSL_VERSION_STRING, sizeof( POLARSSL_VERSION_STRING ) );
40}
41
42void version_get_string_full( char *string )
43{
44 memcpy( string, POLARSSL_VERSION_STRING_FULL, sizeof( POLARSSL_VERSION_STRING_FULL ) );
45}
46
47#endif /* POLARSSL_VERSION_C */