consistent display of strongSwan version
This commit is contained in:
@@ -7,7 +7,7 @@ libfreeswan_a_SOURCES = addrtoa.c addrtot.c addrtypeof.c anyaddr.c atoaddr.c ato
|
||||
pfkey.h pfkeyv2.h rangetosubnet.c sameaddr.c satoa.c \
|
||||
satot.c subnetof.c subnettoa.c subnettot.c \
|
||||
subnettypeof.c ttoaddr.c ttodata.c ttoprotoport.c ttosa.c ttosubnet.c ttoul.c \
|
||||
ultoa.c ultot.c version.c
|
||||
ultoa.c ultot.c
|
||||
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
@@ -15,5 +15,5 @@ INCLUDES = \
|
||||
|
||||
dist_man3_MANS = anyaddr.3 atoaddr.3 atoasr.3 atosa.3 atoul.3 goodmask.3 initaddr.3 initsubnet.3 \
|
||||
keyblobtoid.3 portof.3 prng.3 rangetosubnet.3 sameaddr.3 subnetof.3 \
|
||||
ttoaddr.3 ttodata.3 ttosa.3 ttoul.3 version.3
|
||||
ttoaddr.3 ttodata.3 ttosa.3 ttoul.3
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "freeswan.h"
|
||||
|
||||
static const char *co[] = {
|
||||
"Copyright (C) 1999-2008 Henry Spencer, Richard Guy Briggs,",
|
||||
"Copyright (C) 1999-2009 Henry Spencer, Richard Guy Briggs,",
|
||||
" D. Hugh Redelmeier, Sandy Harris, Claudia Schmeing,",
|
||||
" Michael Richardson, Angelos D. Keromytis, John Ioannidis,",
|
||||
"",
|
||||
|
||||
@@ -218,8 +218,6 @@ unsigned long prng_count(struct prng *prng);
|
||||
void prng_final(struct prng *prng);
|
||||
|
||||
/* odds and ends */
|
||||
const char *ipsec_version_code(void);
|
||||
const char *ipsec_version_string(void);
|
||||
const char **ipsec_copyright_notice(void);
|
||||
|
||||
const char *dns_string_rr(int rr, char *buf, int bufsize);
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
.TH IPSEC_VERSION 3 "21 Nov 2001"
|
||||
.SH NAME
|
||||
ipsec ipsec_version_code \- get IPsec version code
|
||||
.br
|
||||
ipsec ipsec_version_string \- get full IPsec version string
|
||||
.br
|
||||
ipsec ipsec_copyright_notice \- get IPsec copyright notice
|
||||
.SH SYNOPSIS
|
||||
.B "#include <freeswan.h>
|
||||
.sp
|
||||
.B "const char *ipsec_version_code(void);"
|
||||
.br
|
||||
.B "const char *ipsec_version_string(void);"
|
||||
.br
|
||||
.B "const char **ipsec_copyright_notice(void);"
|
||||
.SH DESCRIPTION
|
||||
These functions provide information on version numbering and copyright
|
||||
of the Linux FreeS/WAN IPsec implementation.
|
||||
.PP
|
||||
.I Ipsec_version_code
|
||||
returns a pointer to a string constant
|
||||
containing the current IPsec version code,
|
||||
such as ``1.92'' or ``snap2001Nov19b''.
|
||||
.PP
|
||||
.I Ipsec_version_string
|
||||
returns a pointer to a string constant giving a full version identification,
|
||||
consisting of the version code preceded by a prefix identifying the software,
|
||||
e.g. ``Linux FreeS/WAN 1.92''.
|
||||
.PP
|
||||
.I Ipsec_copyright_notice
|
||||
returns a pointer to a vector of pointers,
|
||||
terminated by a
|
||||
.BR NULL ,
|
||||
which is the text of a suitable copyright notice.
|
||||
Each pointer points to a string constant (possibly empty) which is one line
|
||||
of the somewhat-verbose copyright notice.
|
||||
The strings are NUL-terminated and do not contain a newline;
|
||||
supplying suitable line termination for the output device is
|
||||
the caller's responsibility.
|
||||
.SH SEE ALSO
|
||||
ipsec(8)
|
||||
.SH HISTORY
|
||||
Written for the FreeS/WAN project by Henry Spencer.
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
* return IPsec version information
|
||||
* Copyright (C) 2001 Henry Spencer.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Library General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version. See <http://www.fsf.org/copyleft/lgpl.txt>.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
|
||||
* License for more details.
|
||||
*/
|
||||
|
||||
#include "freeswan.h"
|
||||
|
||||
static const char strongswan_number[] = VERSION;
|
||||
static const char strongswan_string[] = "Linux strongSwan " VERSION;
|
||||
|
||||
/*
|
||||
- ipsec_version_code - return IPsec version number/code, as string
|
||||
*/
|
||||
const char *
|
||||
ipsec_version_code()
|
||||
{
|
||||
return strongswan_number;
|
||||
}
|
||||
|
||||
/*
|
||||
- ipsec_version_string - return full version string
|
||||
*/
|
||||
const char *
|
||||
ipsec_version_string()
|
||||
{
|
||||
return strongswan_string;
|
||||
}
|
||||
Reference in New Issue
Block a user