summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/message.h
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/isakmpd/message.h')
-rw-r--r--sbin/isakmpd/message.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/sbin/isakmpd/message.h b/sbin/isakmpd/message.h
index 45fdfb30835..63c2571cd06 100644
--- a/sbin/isakmpd/message.h
+++ b/sbin/isakmpd/message.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: message.h,v 1.18 2004/04/15 18:39:26 deraadt Exp $ */
+/* $OpenBSD: message.h,v 1.19 2004/05/23 18:17:56 hshoexer Exp $ */
/* $EOM: message.h,v 1.51 2000/10/10 12:36:39 provos Exp $ */
/*
@@ -55,7 +55,8 @@ struct payload {
u_int8_t *p;
/*
- * A pointer to the parent payload, used for proposal and transform payloads.
+ * A pointer to the parent payload, used for proposal and transform
+ * payloads.
*/
struct payload *context;
@@ -88,7 +89,8 @@ struct message {
u_int flags;
/*
- * This is the transport the message either arrived on or will be sent to.
+ * This is the transport the message either arrived on or will be sent
+ * to.
*/
struct transport *transport;
@@ -102,11 +104,12 @@ struct message {
struct exchange *exchange;
/*
- * A segmented buffer structure holding the messages raw contents. On input
- * only segment 0 will be filled, holding all of the message. On output, as
- * long as the message body is unencrypted each segment will be one payload,
- * after encryption segment 0 will be the unencrypted header, and segment 1
- * will be the encrypted payloads, all of them.
+ * A segmented buffer structure holding the messages raw contents. On
+ * input only segment 0 will be filled, holding all of the message.
+ * On output, as long as the message body is unencrypted each segment
+ * will be one payload, after encryption segment 0 will be the
+ * unencrypted header, and segment 1 will be the encrypted payloads,
+ * all of them.
*/
struct iovec *iov;
@@ -117,7 +120,7 @@ struct message {
u_int8_t *nextp;
/* "Smart" pointers to each payload, sorted by type. */
- TAILQ_HEAD(payload_head, payload) payload[ISAKMP_PAYLOAD_RESERVED_MIN];
+ TAILQ_HEAD(payload_head, payload) payload[ISAKMP_PAYLOAD_RESERVED_MIN];
/* Number of times this message has been sent. */
int xmits;
@@ -125,7 +128,7 @@ struct message {
/* The timeout event causing retransmission of this message. */
struct event *retrans;
- /* The (possibly encrypted) message text, used for duplicate testing. */
+ /* The (possibly encrypted) message text, used for duplicate testing. */
u_int8_t *orig;
size_t orig_sz;
@@ -139,7 +142,7 @@ struct message {
* Hooks for stuff needed to be done after the message has gone out to
* the wire.
*/
- TAILQ_HEAD(post_send_head, post_send) post_send;
+ TAILQ_HEAD(post_send_head, post_send) post_send;
};
/* Message flags. */
@@ -162,8 +165,7 @@ struct message {
TAILQ_HEAD(msg_head, message);
-extern int
-message_add_payload(struct message *, u_int8_t, u_int8_t *,
+extern int message_add_payload(struct message *, u_int8_t, u_int8_t *,
size_t, int);
extern int message_add_sa_payload(struct message *);
extern struct message *message_alloc(struct transport *, u_int8_t *, size_t);
@@ -172,21 +174,19 @@ extern u_int8_t *message_copy(struct message *, size_t, size_t *);
extern void message_drop(struct message *, int, struct proto *, int, int);
extern void message_dump_raw(char *, struct message *, int);
extern void message_free(struct message *);
-extern int
-message_negotiate_sa(struct message *,
- int (*) (struct exchange *, struct sa *,
- struct sa *));
- extern int message_recv(struct message *);
- extern int message_register_post_send(struct message *,
- void (*) (struct message *));
- extern void message_post_send(struct message *);
- extern void message_send(struct message *);
- extern void message_send_expire(struct message *);
- extern void message_send_delete(struct sa *);
- extern int message_send_info(struct message *);
- extern void message_send_notification(struct message *, struct sa *,
- u_int16_t, struct proto *, int);
- extern void message_setup_header(struct message *, u_int8_t, u_int8_t,
- u_int8_t *);
+extern int message_negotiate_sa(struct message *,
+ int (*)(struct exchange *, struct sa *, struct sa *));
+extern int message_recv(struct message *);
+extern int message_register_post_send(struct message *,
+ void (*) (struct message *));
+extern void message_post_send(struct message *);
+extern void message_send(struct message *);
+extern void message_send_expire(struct message *);
+extern void message_send_delete(struct sa *);
+extern int message_send_info(struct message *);
+extern void message_send_notification(struct message *, struct sa *,
+ u_int16_t, struct proto *, int);
+extern void message_setup_header(struct message *, u_int8_t, u_int8_t,
+ u_int8_t *);
#endif /* _MESSAGE_H_ */