-/* $OpenBSD: ikev2.c,v 1.161 2017/12/03 21:02:06 patrick Exp $ */
+/* $OpenBSD: ikev2.c,v 1.162 2017/12/03 21:02:44 patrick Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
} else
nxforms = prop->prop_nxforms;
+ sap->sap_more = IKEV1_PAYLOAD_PROPOSAL;
sap->sap_proposalnr = prop->prop_id;
sap->sap_protoid = prop->prop_protoid;
sap->sap_spisize = prop->prop_localspi.spi_size;
sap->sap_length = htobe16(saplength);
length += saplength;
}
+ if (sap != NULL)
+ sap->sap_more = IKEV1_PAYLOAD_NONE;
log_debug("%s: length %zd", __func__, length);
-/* $OpenBSD: ikev2.h,v 1.26 2017/03/27 10:06:41 reyk Exp $ */
+/* $OpenBSD: ikev2.h,v 1.27 2017/12/03 21:02:44 patrick Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
extern struct iked_constmap ikev2_cfg_map[];
+/* IKEv1 payload types */
+#define IKEV1_PAYLOAD_NONE 0 /* No payload */
+#define IKEV1_PAYLOAD_PROPOSAL 2 /* Proposal */
+
#endif /* IKED_IKEV2_H */