/* Libreswan ISAKMP Quirks handling
 * Copyright (C) 2003 Michael Richardson <mcr@xelerance.com>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 */

#ifndef _QUIRKS_H_
#define _QUIRKS_H_

/*
 * PAUL: Why are the quirks in the message digest and not in the state?
 *       EECK: they are in both! Candidate to phase out completely
 */

/**
 * Where to store various quirks (ususally encountered during interop)
 *
 */
struct isakmp_quirks {
	bool xauth_ack_msgid;                   /**< Whether to reset the msgid after an
	                                         * xauth set, such as for SSH Sentinel. */
	bool modecfg_pull_mode;                 /* if the client should request his IP */
	unsigned short nat_traversal_vid;       /**< which NAT-type vendor IDs we got */
	bool xauth_vid;                         /**< if the client has XAUTH */
};

extern void copy_quirks(struct isakmp_quirks *dq,
			struct isakmp_quirks *sq);

#endif
