CVS commit: src/crypto/dist/ipsec-tools/src/libipsec

2022-10-11 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Tue Oct 11 09:54:15 UTC 2022

Modified Files:
src/crypto/dist/ipsec-tools/src/libipsec: key_debug.c

Log Message:
Add parser sadb_x_policy_flags to libipsec/key_debug.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 \
src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/crypto/dist/ipsec-tools/src/libipsec

2022-10-11 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Tue Oct 11 09:54:15 UTC 2022

Modified Files:
src/crypto/dist/ipsec-tools/src/libipsec: key_debug.c

Log Message:
Add parser sadb_x_policy_flags to libipsec/key_debug.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 \
src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c
diff -u src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c:1.16 src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c:1.17
--- src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c:1.16	Mon Sep  6 17:19:52 2021
+++ src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c	Tue Oct 11 09:54:15 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: key_debug.c,v 1.16 2021/09/06 17:19:52 rillig Exp $	*/
+/*	$NetBSD: key_debug.c,v 1.17 2022/10/11 09:54:15 knakahara Exp $	*/
 
 /*	$KAME: key_debug.c,v 1.29 2001/08/16 14:25:41 itojun Exp $	*/
 
@@ -453,11 +453,11 @@ kdebug_sadb_x_policy(struct sadb_ext *ex
 		panic("kdebug_sadb_x_policy: NULL pointer was passed.\n");
 
 #ifdef HAVE_PFKEY_POLICY_PRIORITY
-	printf("sadb_x_policy{ type=%u dir=%u id=%x priority=%u }\n",
+	printf("sadb_x_policy{ type=%u dir=%u flags=0x%02x id=%x priority=%u }\n",
 #else
-	printf("sadb_x_policy{ type=%u dir=%u id=%x }\n",
+	printf("sadb_x_policy{ type=%u dir=%u flags=0x%02x id=%x }\n",
 #endif
-		xpl->sadb_x_policy_type, xpl->sadb_x_policy_dir,
+		xpl->sadb_x_policy_type, xpl->sadb_x_policy_dir, xpl->sadb_x_policy_flags,
 #ifdef HAVE_PFKEY_POLICY_PRIORITY
 		xpl->sadb_x_policy_id, xpl->sadb_x_policy_priority);
 #else



CVS commit: src/crypto/dist/ipsec-tools/src/libipsec

2021-09-06 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Sep  6 17:19:53 UTC 2021

Modified Files:
src/crypto/dist/ipsec-tools/src/libipsec: key_debug.c

Log Message:
libipsec: fix undefined behavior when calling isprint


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 \
src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c
diff -u src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c:1.15 src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c:1.16
--- src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c:1.15	Fri Jun  5 15:19:08 2020
+++ src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c	Mon Sep  6 17:19:52 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: key_debug.c,v 1.15 2020/06/05 15:19:08 christos Exp $	*/
+/*	$NetBSD: key_debug.c,v 1.16 2021/09/06 17:19:52 rillig Exp $	*/
 
 /*	$KAME: key_debug.c,v 1.29 2001/08/16 14:25:41 itojun Exp $	*/
 
@@ -299,7 +299,7 @@ kdebug_sadb_identity(struct sadb_ext *ex
 			p = (void *)(id + 1);
 			ep = p + len;
 			for (/*nothing*/; *p && p < ep; p++) {
-if (isprint((int)*p))
+if (isprint((unsigned char)*p))
 	printf("%c", *p & 0xff);
 else
 	printf("\\%03o", *p & 0xff);



CVS commit: src/crypto/dist/ipsec-tools/src/libipsec

2021-09-06 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Sep  6 17:19:53 UTC 2021

Modified Files:
src/crypto/dist/ipsec-tools/src/libipsec: key_debug.c

Log Message:
libipsec: fix undefined behavior when calling isprint


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 \
src/crypto/dist/ipsec-tools/src/libipsec/key_debug.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.