-extern int isakmp_handler __P((int));
-extern int isakmp_ph1begin_i __P((struct remoteconf *, struct sockaddr *,
- struct sockaddr *, int));
-
-extern vchar_t *isakmp_parsewoh __P((int, struct isakmp_gen *, int));
-extern vchar_t *isakmp_parse __P((vchar_t *));
-
-extern int isakmp_init __P((int, int *));
-extern void isakmp_cleanup __P((void));
-
-extern const char *isakmp_pindex __P((const isakmp_index *, const u_int32_t));
-extern int isakmp_open __P((int *));
-extern void isakmp_close __P((void));
-extern void isakmp_close_sockets __P((void));
-extern void isakmp_close_unused __P((void));
-extern int isakmp_send __P((struct ph1handle *, vchar_t *));
-
-extern void isakmp_ph1resend_stub __P((void *));
-extern int isakmp_ph1resend __P((struct ph1handle *));
-extern void isakmp_ph2resend_stub __P((void *));
-extern int isakmp_ph2resend __P((struct ph2handle *));
-extern void isakmp_ph1expire_stub __P((void *));
-extern void isakmp_ph1expire __P((struct ph1handle *));
-extern void isakmp_ph1rekeyexpire_stub __P((void *));
-extern void isakmp_ph1rekeyexpire __P((struct ph1handle *, int));
-extern int isakmp_ph1rekeyretry __P((struct ph1handle *));
-extern void isakmp_ph1delete_stub __P((void *));
-extern void isakmp_ph1delete __P((struct ph1handle *));
-extern void isakmp_ph2expire_stub __P((void *));
-extern void isakmp_ph2expire __P((struct ph2handle *));
-extern void isakmp_ph2delete_stub __P((void *));
-extern void isakmp_ph2delete __P((struct ph2handle *));
-
-extern int isakmp_post_acquire __P((struct ph2handle *));
-extern int isakmp_post_getspi __P((struct ph2handle *));
-extern void isakmp_chkph1there_stub __P((void *));
-extern void isakmp_chkph1there __P((struct ph2handle *));
-
-extern caddr_t isakmp_set_attr_v __P((caddr_t, int, caddr_t, int));
-extern caddr_t isakmp_set_attr_l __P((caddr_t, int, u_int32_t));
-extern vchar_t *isakmp_add_attr_v __P((vchar_t *, int, caddr_t, int));
-extern vchar_t *isakmp_add_attr_l __P((vchar_t *, int, u_int32_t));
-
-extern int isakmp_newcookie __P((caddr_t, struct sockaddr *, struct sockaddr *));
-
-extern int isakmp_p2ph __P((vchar_t **, struct isakmp_gen *));
-
-extern u_int32_t isakmp_newmsgid2 __P((struct ph1handle *));
-extern caddr_t set_isakmp_header1 __P((vchar_t *, struct ph1handle *, int));
-extern caddr_t set_isakmp_header2 __P((vchar_t *, struct ph2handle *, int));
-extern caddr_t set_isakmp_payload __P((caddr_t, vchar_t *, int));
-
-extern struct payload_list *isakmp_plist_append __P((struct payload_list *plist,
- vchar_t *payload, int payload_type));
-extern vchar_t *isakmp_plist_set_all __P((struct payload_list **plist,
- struct ph1handle *iph1));
-extern vchar_t *isakmp_plist_append_initial_contact __P((struct ph1handle *,
- struct payload_list *));
+extern void isakmp_handler (int);
+extern int ikev1_ph1begin_i (ike_session_t *session, struct remoteconf *, struct sockaddr_storage *,
+ struct sockaddr_storage *, int, nw_nat64_prefix_t *);
+extern int get_sainfo_r (phase2_handle_t *);
+extern int get_proposal_r (phase2_handle_t *);
+
+extern vchar_t *isakmp_parsewoh (int, struct isakmp_gen *, int);
+extern vchar_t *isakmp_parse (vchar_t *);
+
+extern int isakmp_init (void);
+extern void isakmp_cleanup (void);
+
+extern const char *isakmp_pindex (const isakmp_index *, const u_int32_t);
+extern int isakmp_open (void);
+extern void isakmp_suspend_sockets(void);
+extern void isakmp_close (void);
+extern void isakmp_close_sockets (void);
+extern void isakmp_close_unused (void);
+extern int isakmp_send (phase1_handle_t *, vchar_t *);
+
+extern void isakmp_ph1resend_stub (void *);
+extern int isakmp_ph1resend (phase1_handle_t *);
+extern void isakmp_ph2resend_stub (void *);
+extern int isakmp_ph2resend (phase2_handle_t *);
+
+extern void isakmp_ph1expire_stub (void *);
+extern void isakmp_ph1expire (phase1_handle_t *);
+extern void isakmp_ph1rekeyexpire_stub (void *);
+extern void isakmp_ph1rekeyexpire (phase1_handle_t *, int);
+extern int isakmp_ph1rekeyretry (phase1_handle_t *);
+extern void isakmp_ph1delete_stub (void *);
+extern void isakmp_ph1delete (phase1_handle_t *);
+extern void isakmp_ph2expire_stub (void *);
+extern void isakmp_ph2expire (phase2_handle_t *);
+extern void isakmp_ph2delete_stub (void *);
+extern void isakmp_ph2delete (phase2_handle_t *);
+extern int ikev1_phase1_established(phase1_handle_t *);
+
+extern int isakmp_post_acquire (phase2_handle_t *);
+extern int isakmp_post_getspi (phase2_handle_t *);
+extern void isakmp_chkph1there_stub (void *);
+extern void isakmp_chkph1there (phase2_handle_t *);
+
+extern caddr_t isakmp_set_attr_v (caddr_t, int, caddr_t, int);
+extern caddr_t isakmp_set_attr_l (caddr_t, int, u_int32_t);
+extern vchar_t *isakmp_add_attr_v (vchar_t *, int, caddr_t, int);
+extern vchar_t *isakmp_add_attr_l (vchar_t *, int, u_int32_t);
+
+extern int isakmp_newcookie (caddr_t, struct sockaddr_storage *, struct sockaddr_storage *);
+
+extern int isakmp_p2ph (vchar_t **, struct isakmp_gen *);
+
+extern u_int32_t isakmp_newmsgid2 (phase1_handle_t *);
+extern caddr_t set_isakmp_header1 (vchar_t *, phase1_handle_t *, int);
+extern caddr_t set_isakmp_header2 (vchar_t *, phase2_handle_t *, int);
+extern caddr_t set_isakmp_payload (caddr_t, vchar_t *, int);
+
+extern struct payload_list *isakmp_plist_append (struct payload_list *plist,
+ vchar_t *payload, int payload_type);
+extern vchar_t *isakmp_plist_set_all (struct payload_list **plist,
+ phase1_handle_t *iph1);
+extern vchar_t *isakmp_plist_append_initial_contact (phase1_handle_t *, struct payload_list *);