ph2handle
struct ph2handle *iph2;
evt_phase2(const struct ph2handle *ph2, int type, vchar_t *optdata)
struct ph2handle;
void evt_phase2(const struct ph2handle *ph2, int type, vchar_t *optdata);
static int revalidate_ph2(struct ph2handle *iph2){
remove_ph2(struct ph2handle *iph2)
struct ph2handle *iph2, *iph2_next;
struct ph2handle *p, *next;
struct ph2handle *p, *next;
int (*enum_func)(struct ph2handle *ph2, void *arg), void *enum_arg)
struct ph2handle *p;
struct ph2handle *
struct ph2handle *p;
struct ph2handle *
struct ph2handle *p;
struct ph2handle *
struct ph2handle *p, *next;
struct ph2handle *
struct ph2handle *p;
struct ph2handle *
struct ph2handle *iph2;
struct ph2handle *
struct ph2handle *iph2 = NULL;
initph2(struct ph2handle *iph2)
delph2(struct ph2handle *iph2)
insph2(struct ph2handle *iph2)
remph2(struct ph2handle *iph2)
struct ph2handle *p, *next;
static LIST_HEAD(_ph2tree_, ph2handle) ph2tree;
struct ph2handle *iph2, *next;
bindph12(struct ph1handle *iph1, struct ph2handle *iph2)
unbindph12(struct ph2handle *iph2)
LIST_HEAD(_ph2ofph1_, ph2handle) ph2tree;
LIST_ENTRY(ph2handle) chain;
LIST_ENTRY(ph2handle) ph1bind; /* chain to ph1handle */
struct ph2handle;
int (* enum_func)(struct ph2handle *iph2, void *arg), void *enum_arg);
extern struct ph2handle *getph2byseq(uint32_t);
extern struct ph2handle *getph2bysaddr(struct sockaddr *, struct sockaddr *);
extern struct ph2handle *getph2bymsgid(struct ph1handle *, uint32_t);
extern struct ph2handle *getph2byid(struct sockaddr *,
extern struct ph2handle *getph2bysaidx(struct sockaddr *, struct sockaddr *,
extern struct ph2handle *newph2(void);
extern void initph2(struct ph2handle *);
extern void delph2(struct ph2handle *);
extern int insph2(struct ph2handle *);
extern void remph2(struct ph2handle *);
extern void bindph12(struct ph1handle *, struct ph2handle *);
extern void unbindph12(struct ph2handle *);
static struct prop_pair *get_ph2approval(struct ph2handle *,
static struct prop_pair *get_ph2approvalx(struct ph2handle *,
ipsecdoi_updatespi(struct ph2handle *iph2)
static vchar_t *setph2proposal0(const struct ph2handle *,
setph2proposal0(const struct ph2handle *iph2, const struct saprop *pp,
ipsecdoi_setph2proposal(struct ph2handle *iph2)
ipsecdoi_setid2(struct ph2handle *iph2)
ipsecdoi_selectph2proposal(struct ph2handle *iph2)
ipsecdoi_checkph2proposal(struct ph2handle *iph2)
get_ph2approval(struct ph2handle *iph2, struct prop_pair **pair)
get_ph2approvalx(struct ph2handle *iph2, struct prop_pair *pp)
extern int ipsecdoi_selectph2proposal(struct ph2handle *);
extern int ipsecdoi_checkph2proposal(struct ph2handle *);
extern int ipsecdoi_updatespi(struct ph2handle *iph2);
extern int ipsecdoi_setid2(struct ph2handle *);
extern int ipsecdoi_setph2proposal(struct ph2handle *);
isakmp_ph2begin_i(struct ph1handle *iph1, struct ph2handle *iph2)
struct ph2handle *iph2 = 0;
static int nostate2(struct ph2handle *, vchar_t *);
static int (*ph2exchange[][2][PHASE2ST_MAX])(struct ph2handle *, vchar_t *) = {
static int quick_main(struct ph2handle *, vchar_t *);
static int isakmp_ph2begin_i(struct ph1handle *, struct ph2handle *);
struct ph2handle *iph2 = container_of(p, struct ph2handle, scr);
static int isakmp_ph2resend(struct ph2handle *);
isakmp_ph2resend(struct ph2handle *iph2)
isakmp_ph2send(struct ph2handle *iph2)
struct ph2handle *p;
struct ph2handle *p, *next;
isakmp_ph2expire(container_of(p, struct ph2handle, sce));
isakmp_ph2expire(struct ph2handle *iph2)
isakmp_ph2delete(container_of(p, struct ph2handle, sce));
isakmp_ph2delete(struct ph2handle *iph2)
isakmp_post_acquire(struct ph2handle *iph2, struct ph1handle *iph1hint,
isakmp_get_sainfo(struct ph2handle *iph2, struct secpolicy *sp_out,
isakmp_post_getspi(struct ph2handle *iph2)
isakmp_chkph1there(container_of(p, struct ph2handle, sce));
isakmp_chkph1there(struct ph2handle *iph2)
set_isakmp_header2(vchar_t *vbuf, struct ph2handle *iph2, int nptype)
nostate2(struct ph2handle *iph2, vchar_t *msg __unused)
struct ph2handle *iph2;
delete_spd(struct ph2handle *iph2, u_int64_t created)
struct ph2handle *iph2;
quick_main(struct ph2handle *iph2, vchar_t *msg)
struct ph2handle *iph2 = NULL;
struct ph2handle *iph2;
struct ph2handle *protectedph2)
struct ph2handle *iph2;
isakmp_info_send_d2( struct ph2handle *iph2)
isakmp_info_send_n2(struct ph2handle *iph2, int type, vchar_t *data)
struct ph2handle *iph2 = NULL;
extern int isakmp_info_send_d2(struct ph2handle *);
extern int isakmp_info_send_n2(struct ph2handle *, int, vchar_t *);
extern int isakmp_info_recv_initialcontact(struct ph1handle *, struct ph2handle *);
static int get_proposal_r(struct ph2handle *);
static int ph2_recv_n(struct ph2handle *, struct isakmp_gen *);
static void quick_timeover(struct ph2handle *);
quick_r1recv(struct ph2handle *iph2, vchar_t *msg0)
quick_timeover(container_of(p, struct ph2handle, sce));
quick_timeover(struct ph2handle *iph2)
quick_i1prep(struct ph2handle *iph2, vchar_t *msg __unused) /* must be null pointer */
quick_r1prep(struct ph2handle *iph2, vchar_t *msg __unused)
quick_r2send(struct ph2handle *iph2, vchar_t *msg)
quick_r3recv(struct ph2handle *iph2, vchar_t *msg0)
quick_i1send(struct ph2handle *iph2, vchar_t *msg) /* must be null pointer */
quick_r3send(struct ph2handle *iph2, vchar_t *msg0)
quick_r3prep(struct ph2handle *iph2, vchar_t *msg0 __unused)
quick_ir1mx(struct ph2handle *iph2, vchar_t *body, vchar_t *hash)
get_sainfo_r(struct ph2handle *iph2)
get_proposal_r(struct ph2handle *iph2)
ph2_recv_n(struct ph2handle *iph2, struct isakmp_gen *gen)
quick_i2recv(struct ph2handle *iph2, vchar_t *msg0)
quick_i2send(struct ph2handle *iph2, vchar_t *msg0)
quick_i3recv(struct ph2handle *iph2, vchar_t *msg0)
static vchar_t *quick_ir1mx(struct ph2handle *, vchar_t *, vchar_t *);
static int get_sainfo_r(struct ph2handle *);
extern int quick_i1prep(struct ph2handle *, vchar_t *);
extern int quick_i1send(struct ph2handle *, vchar_t *);
extern int quick_i2recv(struct ph2handle *, vchar_t *);
extern int quick_i2send(struct ph2handle *, vchar_t *);
extern int quick_i3recv(struct ph2handle *, vchar_t *);
extern int quick_r1recv(struct ph2handle *, vchar_t *);
extern int quick_r1prep(struct ph2handle *, vchar_t *);
extern int quick_r2send(struct ph2handle *, vchar_t *);
extern int quick_r3recv(struct ph2handle *, vchar_t *);
extern int quick_r3send(struct ph2handle *, vchar_t *);
extern int quick_r3prep(struct ph2handle *, vchar_t *);
extern caddr_t set_isakmp_header2(vchar_t *, struct ph2handle *, int);
void delete_spd(struct ph2handle *, u_int64_t);
struct ph2handle;
extern int isakmp_ph2send(struct ph2handle *);
extern void isakmp_ph2expire(struct ph2handle *);
extern void isakmp_ph2delete(struct ph2handle *);
extern int isakmp_get_sainfo(struct ph2handle *, struct secpolicy *, struct secpolicy *);
extern int isakmp_post_acquire(struct ph2handle *, struct ph1handle *, int);
extern int isakmp_post_getspi(struct ph2handle *);
extern void isakmp_chkph1there(struct ph2handle *);
static int oakley_compute_keymat_x(struct ph2handle *, int, int);
oakley_compute_keymat(struct ph2handle *iph2, int side)
oakley_compute_keymat_x(struct ph2handle *iph2, int side, int sa_dir)
struct ph2handle;
extern int oakley_compute_keymat(struct ph2handle *, int);
pk_sendupdate(struct ph2handle *iph2)
struct ph2handle *iph2;
static int getsadbpolicy(caddr_t *, int *, int, struct ph2handle *);
pk_sendadd(struct ph2handle *iph2)
struct ph2handle *iph2;
struct ph2handle *iph2;
struct ph2handle *iph2;
struct ph2handle *iph2 = NULL;
struct ph2handle *iph2)
pk_sendspdupdate2(struct ph2handle *iph2)
pk_sendspdadd2(struct ph2handle *iph2)
pk_sendspddelete(struct ph2handle *iph2)
struct ph2handle *iph2;
struct ph2handle *iph2;
struct ph2handle *iph2;
pk_sendeacquire(struct ph2handle *iph2)
pk_sendgetspi(struct ph2handle *iph2)
struct ph2handle *iph2;
struct ph2handle;
extern int pk_sendgetspi(struct ph2handle *);
extern int pk_sendupdate(struct ph2handle *);
extern int pk_sendadd(struct ph2handle *);
extern int pk_sendeacquire(struct ph2handle *);
extern int pk_sendspdupdate2(struct ph2handle *);
extern int pk_sendspdadd2(struct ph2handle *);
extern int pk_sendspddelete(struct ph2handle *);
struct ph2handle *iph2;
struct ph2handle;
extern void set_secctx_in_proposal(struct ph2handle *, struct policyindex);
set_proposal_from_policy(struct ph2handle *iph2,
set_proposal_from_proposal(struct ph2handle *iph2)
extern int set_proposal_from_policy(struct ph2handle *,
extern int set_proposal_from_proposal(struct ph2handle *);
struct ph2handle *iph2;
iph2 = (struct ph2handle *)buf;
struct ph2handle *iph2;