File: ikev2_informational.h

package info (click to toggle)
libreswan 5.2-2.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 81,656 kB
  • sloc: ansic: 129,988; sh: 32,018; xml: 20,646; python: 10,303; makefile: 3,022; javascript: 1,506; sed: 574; yacc: 511; perl: 264; awk: 52
file content (44 lines) | stat: -rw-r--r-- 1,589 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* IKEv2 informational exchange, for Libreswan
 *
 * Copyright (C) 2021  Andrew Cagney
 *
 * 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 <https://www.gnu.org/licenses/gpl2.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 IKEV2_INFORMATIONAL_H
#define IKEV2_INFORMATIONAL_H

typedef bool emit_v2_INFORMATIONAL_request_payload_fn(struct ike_sa *ike,
						      struct child_sa *child,
						      struct pbs_out *pbs);

extern bool record_v2_INFORMATIONAL_request(const char *name,
					    struct logger *logger,
					    struct ike_sa *ike,
					    struct child_sa *child,
					    emit_v2_INFORMATIONAL_request_payload_fn *emit_payloads);

typedef bool emit_v2_INFORMATIONAL_response_payload_fn(struct ike_sa *ike,
						       struct child_sa *child,
						       struct msg_digest *md,
						       struct pbs_out *pbs);

extern bool record_v2_INFORMATIONAL_response(const char *name,
					     struct logger *logger,
					     struct ike_sa *ike,
					     struct child_sa *child,
					     struct msg_digest *md,
					     emit_v2_INFORMATIONAL_response_payload_fn *emit_payloads);

extern const struct v2_exchange v2_INFORMATIONAL_exchange;

#endif