PolarSSL v1.1.4
version.c
Go to the documentation of this file.
00001 /*
00002  *  Version information
00003  *
00004  *  Copyright (C) 2006-2010, Brainspark B.V.
00005  *
00006  *  This file is part of PolarSSL (http://www.polarssl.org)
00007  *  Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
00008  *
00009  *  All rights reserved.
00010  *
00011  *  This program is free software; you can redistribute it and/or modify
00012  *  it under the terms of the GNU General Public License as published by
00013  *  the Free Software Foundation; either version 2 of the License, or
00014  *  (at your option) any later version.
00015  *
00016  *  This program is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  *  GNU General Public License for more details.
00020  *
00021  *  You should have received a copy of the GNU General Public License along
00022  *  with this program; if not, write to the Free Software Foundation, Inc.,
00023  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00024  */
00025 
00026 #include "polarssl/config.h"
00027 
00028 #if defined(POLARSSL_VERSION_C)
00029 
00030 #include "polarssl/version.h"
00031 #include <string.h>
00032 
00033 const char version[] = POLARSSL_VERSION_STRING;
00034 
00035 unsigned int version_get_number()
00036 {
00037     return POLARSSL_VERSION_NUMBER;
00038 }
00039 
00040 void version_get_string( char *string )
00041 {
00042     memcpy( string, POLARSSL_VERSION_STRING, sizeof( POLARSSL_VERSION_STRING ) );
00043 }
00044 
00045 void version_get_string_full( char *string )
00046 {
00047     memcpy( string, POLARSSL_VERSION_STRING_FULL, sizeof( POLARSSL_VERSION_STRING_FULL ) );
00048 }
00049 
00050 #endif /* POLARSSL_VERSION_C */