]>
Commit | Line | Data |
---|---|---|
997358a6 MW |
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.2 2004/03/16 12:26:32 as Exp $ | |
16 | */ | |
17 | ||
18 | #ifdef __KERNEL__ | |
19 | #include <linux/netdevice.h> | |
20 | #endif | |
21 | ||
22 | #include "freeswan.h" | |
23 | ||
24 | #define V "xxx" /* substituted in by Makefile */ | |
25 | static const char strongswan_number[] = V; | |
26 | static const char strongswan_string[] = "Linux strongSwan " V; | |
27 | ||
28 | /* | |
29 | - ipsec_version_code - return IPsec version number/code, as string | |
30 | */ | |
31 | const char * | |
32 | ipsec_version_code() | |
33 | { | |
34 | return strongswan_number; | |
35 | } | |
36 | ||
37 | /* | |
38 | - ipsec_version_string - return full version string | |
39 | */ | |
40 | const char * | |
41 | ipsec_version_string() | |
42 | { | |
43 | return strongswan_string; | |
44 | } |