aboutsummaryrefslogtreecommitdiff
path: root/lib/libipsec/ipsec_strerror.3
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@FreeBSD.org>2000-07-04 16:22:05 +0000
committerJun-ichiro itojun Hagino <itojun@FreeBSD.org>2000-07-04 16:22:05 +0000
commit3c62e87aa307c7566c1e7986655911494d813dc5 (patch)
treec100786b76ccff689ccfb6ac9bca9a5542f2df99 /lib/libipsec/ipsec_strerror.3
parentc638a74daa9ea2805570c545d5a6053d2f013c24 (diff)
downloadsrc-3c62e87aa307c7566c1e7986655911494d813dc5.tar.gz
src-3c62e87aa307c7566c1e7986655911494d813dc5.zip
synchronize with latest kame tree.
behavior change: policy syntax was changed. you may need to update your setkey(8) configuration files.
Notes
Notes: svn path=/head/; revision=62583
Diffstat (limited to 'lib/libipsec/ipsec_strerror.3')
-rw-r--r--lib/libipsec/ipsec_strerror.338
1 files changed, 26 insertions, 12 deletions
diff --git a/lib/libipsec/ipsec_strerror.3 b/lib/libipsec/ipsec_strerror.3
index d1f3c584cb03..d0d39774d364 100644
--- a/lib/libipsec/ipsec_strerror.3
+++ b/lib/libipsec/ipsec_strerror.3
@@ -1,4 +1,7 @@
.\" Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
+.\" $FreeBSD$
+.\" $KAME: ipsec_strerror.3,v 1.6 2000/05/07 05:25:03 itojun Exp $
+.\"
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -25,22 +28,19 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: ipsec_strerror.3,v 1.2 1999/09/21 03:49:19 itojun Exp $
-.\" $FreeBSD$
-.\"
.Dd May 6, 1998
.Dt IPSEC_STRERROR 3
.Os
+.\"
.Sh NAME
.Nm ipsec_strerror
.Nd error code for IPsec policy manipulation library
-.Sh LIBRARY
-.Lb libipsec
+.\"
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
.Fd #include <netinet6/ipsec.h>
.Ft "char *"
-.Fn ipsec_strerror void
+.Fn ipsec_strerror
+.\"
.Sh DESCRIPTION
.Pa netinet6/ipsec.h
declares
@@ -51,16 +51,30 @@ which is used to pass error code from IPsec policy manipulation library
to user program.
.Fn ipsec_strerror
can be used to obtain error message string for the error code.
+.Pp
+The array pointed to is not to be modified by the program.
+Since
+.Fn ipsec_strerror
+uses
+.Xr strerror 3
+as underlying function, calling
+.Xr strerror 3
+after
+.Fn ipsec_strerror
+would make the return value from
+.Fn ipsec_strerror
+invalid, or overwritten.
+.\"
.Sh RETURN VALUES
.Fn ipsec_strerror
always return a pointer to C string.
The C string must not be overwritten by user programs.
.\"
-.\" .Sh SEE ALSO
+.Sh SEE ALSO
+.Xr ipsec_set_policy 3
.\"
.Sh HISTORY
The functions first appeared in WIDE/KAME IPv6 protocol stack kit.
-.Pp
-IPv6 and IPsec support based on the KAME Project (http://www.kame.net/) stack
-was initially integrated into
-.Fx 4.0
+.\"
+.\" .Sh BUGS
+.\" (to be written)