OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / freeswan / lib / version.in.c
1 /*
2  * return IPsec version information
3  * Copyright (C) 2001  Henry Spencer.
4  * 
5  * This library is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU Library General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.  See <http://www.fsf.org/copyleft/lgpl.txt>.
9  * 
10  * This library is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
13  * License for more details.
14  *
15  * RCSID $Id: version.in.c,v 1.1 2001/11/22 03:29:41 henry Exp $
16  */
17 #include "internal.h"
18 #include "freeswan.h"
19
20 #define V       "xxx"           /* substituted in by Makefile */
21 static const char freeswan_number[] = V;
22 static const char freeswan_string[] = "Linux FreeS/WAN " V;
23
24 /*
25  - ipsec_version_code - return IPsec version number/code, as string
26  */
27 const char *
28 ipsec_version_code()
29 {
30         return freeswan_number;
31 }
32
33 /*
34  - ipsec_version_string - return full version string
35  */
36 const char *
37 ipsec_version_string()
38 {
39         return freeswan_string;
40 }