Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

user/3010: ISAKMP uses both case sensitive & insensitive matching

From: <mcn(at)EnGarde.com>
Date: Sat Nov 30 2002 - 18:30:01 EST


>Number: 3010
net
>Environment:
        

	System      : OpenBSD 3.2
	Architecture: OpenBSD.i386
	Machine     : i386

>Description:

In general, for default values, ISAKMP uses conf_get_trans_str(), whereas it uses conf_get_str() for other values. conf_get_trans_str() uses a case sensitive comparison, whereas conf_get_str() does not.

As a result, if you specify any defaults in the General section, you must use exactly the capitalization described in the man page. (e.g. 'Default-phase-1-ID' or 'Default-phase-1-lifetime').
>How-To-Repeat:

Try specifying a 'Default-phase-1-Lifetime' and see it's ignored.
>Fix:

Index: conf.c



RCS file: /home/mcn/OS/obsd-cvs/src/sbin/isakmpd/conf.c,v retrieving revision 1.45
diff -r1.45 conf.c
351c351
< && strcmp (tag, node->tag) == 0)
---

> && strcasecmp (tag, node->tag) == 0)

>Release-Note:
Received on Sun Dec 1 14:04:38 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:38 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library