xref: /openbsd-src/sbin/isakmpd/isakmp_cfg.h (revision 12f43dabdfdd89ef280c188d95ec6433ca64942c)
1*12f43dabShshoexer /* $OpenBSD: isakmp_cfg.h,v 1.5 2004/05/23 18:17:56 hshoexer Exp $	 */
23635a927Sniklas 
33635a927Sniklas /*
43635a927Sniklas  * Copyright (c) 2001 Niklas Hallqvist.  All rights reserved.
53635a927Sniklas  *
63635a927Sniklas  * Redistribution and use in source and binary forms, with or without
73635a927Sniklas  * modification, are permitted provided that the following conditions
83635a927Sniklas  * are met:
93635a927Sniklas  * 1. Redistributions of source code must retain the above copyright
103635a927Sniklas  *    notice, this list of conditions and the following disclaimer.
113635a927Sniklas  * 2. Redistributions in binary form must reproduce the above copyright
123635a927Sniklas  *    notice, this list of conditions and the following disclaimer in the
133635a927Sniklas  *    documentation and/or other materials provided with the distribution.
143635a927Sniklas  *
153635a927Sniklas  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
163635a927Sniklas  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
173635a927Sniklas  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
183635a927Sniklas  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
193635a927Sniklas  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
203635a927Sniklas  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
213635a927Sniklas  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
223635a927Sniklas  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
233635a927Sniklas  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
243635a927Sniklas  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
253635a927Sniklas  */
263635a927Sniklas 
273635a927Sniklas /*
283635a927Sniklas  * This code was written under funding by Gatespace
293635a927Sniklas  * (http://www.gatespace.com/).
303635a927Sniklas  */
313635a927Sniklas 
323635a927Sniklas #ifndef _ISAKMP_CFG_H_
333635a927Sniklas #define _ISAKMP_CFG_H_
343635a927Sniklas 
353635a927Sniklas #include <sys/queue.h>
363635a927Sniklas 
373635a927Sniklas struct isakmp_cfg_attr {
383635a927Sniklas 	LIST_ENTRY(isakmp_cfg_attr) link;
393635a927Sniklas 	u_int16_t       type;
407b0d1029Sho 	u_int8_t        attr_used;
417b0d1029Sho 	/* 8 bits just to be well-aligned.  */
427b0d1029Sho 	u_int8_t        ignore;
433635a927Sniklas 	size_t          length;
443635a927Sniklas 	void           *value;
453635a927Sniklas };
463635a927Sniklas 
473635a927Sniklas struct message;
483635a927Sniklas 
493635a927Sniklas extern int      (*isakmp_cfg_initiator[])(struct message *);
503635a927Sniklas extern int      (*isakmp_cfg_responder[])(struct message *);
513635a927Sniklas extern int16_t  script_transaction[];
523635a927Sniklas 
533635a927Sniklas #endif				/* _ISAKMP_CFG_H_ */
54