blob: a43e48888a84183af2b860f9e84e0d0e1367dd12 [file] [log] [blame]
Paul Bakker3ac1b2d2010-06-18 22:47:29 +00001/*
2 * Version information
3 *
4 * Copyright (C) 2006-2010, Paul Bakker <polarssl_maintainer at polarssl.org>
5 * All rights reserved.
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
22#include "polarssl/config.h"
23
24#if defined(POLARSSL_VERSION_C)
25
26#include "polarssl/version.h"
27#include <string.h>
28
29const char version[] = POLARSSL_VERSION_STRING;
30
31unsigned int version_get_number()
32{
33 return POLARSSL_VERSION_NUMBER;
34}
35
36void version_get_string( char *string )
37{
38 memcpy( string, POLARSSL_VERSION_STRING, sizeof( POLARSSL_VERSION_STRING ) );
39}
40
41void version_get_string_full( char *string )
42{
43 memcpy( string, POLARSSL_VERSION_STRING_FULL, sizeof( POLARSSL_VERSION_STRING_FULL ) );
44}
45
46#endif /* POLARSSL_VERSION_C */