summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_ipsp.c14
-rw-r--r--sys/netinet/ip_ipsp.h4
2 files changed, 15 insertions, 3 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index 0f3ce4af16d..0963cd3606d 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.121 2001/05/30 11:15:37 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.122 2001/05/30 16:43:11 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -982,6 +982,18 @@ ipsp_kern(int off, char **bufp, int len)
else
l += sprintf(buffer + l, "\n");
+ if (tdb->tdb_local_cred)
+ l += sprintf(buffer + l, "\tLocal credential type %d\n", ((struct ipsec_ref *) tdb->tdb_local_cred)->ref_type);
+
+ if (tdb->tdb_remote_cred)
+ l += sprintf(buffer + l, "\tRemote credential type %d\n", ((struct ipsec_ref *) tdb->tdb_remote_cred)->ref_type);
+
+ if (tdb->tdb_local_auth)
+ l += sprintf(buffer + l, "\tLocal auth type %d\n", ((struct ipsec_ref *) tdb->tdb_local_auth)->ref_type);
+
+ if (tdb->tdb_remote_auth)
+ l += sprintf(buffer + l, "\tRemote auth type %d\n", ((struct ipsec_ref *) tdb->tdb_remote_auth)->ref_type);
+
l += sprintf(buffer + l, "\tFlags (%08x) = <", tdb->tdb_flags);
if ((tdb->tdb_flags & ~(TDBF_TIMER | TDBF_BYTES |
diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h
index 6efb92a9aed..216e2cc4f46 100644
--- a/sys/netinet/ip_ipsp.h
+++ b/sys/netinet/ip_ipsp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.h,v 1.97 2001/05/30 12:24:39 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.h,v 1.98 2001/05/30 16:43:12 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -236,7 +236,7 @@ struct ipsec_policy
#define IPSP_IDENTITY_NONE 0
#define IPSP_IDENTITY_PREFIX 1
#define IPSP_IDENTITY_FQDN 2
-#define IPSP_IDENTITY_MBOX 3
+#define IPSP_IDENTITY_USERFQDN 3
#define IPSP_IDENTITY_CONNECTION 4
/*