| /src/crypto/dist/ipsec-tools/src/racoon/ |
| evt.c | 294 evt_phase1(const struct ph1handle *ph1, int type, vchar_t *optdata) 301 if (ph1->local) 302 memcpy(&e->evt.ec_ph1src, ph1->local, sysdep_sa_len(ph1->local)); 303 if (ph1->remote) 304 memcpy(&e->evt.ec_ph1dst, ph1->remote, sysdep_sa_len(ph1->remote)); 306 evtmsg_broadcast(&ph1->evt_listeners, e); 317 struct ph1handle *ph1 = ph2->ph1; local [all...] |
| isakmp_quick.c | 147 iph2->msgid = isakmp_newmsgid2(iph2->ph1); 148 iph2->ivm = oakley_newiv2(iph2->ph1, iph2->msgid); 214 iph2->nonce = eay_set_random(iph2->ph1->rmconf->nonce_size); 262 iph2->ph1->rmconf->support_proxy == 0 && 275 && (iph2->ph1->natt_flags & NAT_DETECTED)) { 276 natoa = iph2->ph1->natt_options->payload_nat_oa; 356 hash = oakley_compute_hash1(iph2->ph1, iph2->msgid, body); 417 plog(LLV_ERROR, LOCATION, iph2->ph1->remote, 421 msg = oakley_do_decrypt(iph2->ph1, msg0, iph2->ivm->iv, iph2->ivm->ive); 439 plog(LLV_ERROR, LOCATION, iph2->ph1->remote [all...] |
| evt.h | 122 void evt_phase1(const struct ph1handle *ph1, int type, vchar_t *optdata); 135 #define evt_phase1(ph1, type, optdata) ;
|
| proposal.c | 186 cmpsaprop_alloc(struct ph1handle *ph1, 209 switch (ph1->rmconf->pcheck_level) { 434 if ((ph1->natt_flags & NAT_DETECTED) && 439 s_ipsecdoi_encmode(pr2->encmode - ph1->natt_options->mode_udp_diff)); 440 pr2->encmode -= ph1->natt_options->mode_udp_diff; 444 if ((ph1->natt_flags & NAT_DETECTED) && 450 s_ipsecdoi_encmode(pr1->encmode - ph1->natt_options->mode_udp_diff), 451 pr1->encmode - ph1->natt_options->mode_udp_diff); 452 pr1->encmode -= ph1->natt_options->mode_udp_diff; 468 if (cmpsatrns(pr1->proto_id, tr1, tr2, ph1->rmconf->pcheck_level) == 0 [all...] |
| admin.c | 424 struct ph1handle *ph1; local 430 ph1 = getph1byaddr(src, dst, 0); 431 if (ph1 != NULL) { 432 event_list = &ph1->evt_listeners; 433 if (ph1->status == PHASE1ST_ESTABLISHED) 478 ph1 = isakmp_ph1begin_i(rmconf, dst, src); 479 if (ph1 == NULL) 482 event_list = &ph1->evt_listeners;
|
| handler.c | 249 "unexpected rmconf switch; killing ph1\n"); 281 * the iph1 is new, migrate all phase2s that belong to a dying or dead ph1 574 if (p->msgid == msgid && p->ph1 == iph1) 896 iph2->ph1 = iph1; 904 if (iph2->ph1 != NULL) { 906 iph2->ph1->ph2cnt--; 907 iph2->ph1 = NULL; 1251 * Note: we must have an updated ph1->rmconf before doing that, 1252 * we'll set check_level to EXACT if we don't have a ph1 1256 if (iph2->ph1 != NULL [all...] |
| isakmp.c | 806 "failed to pre-process ph1 packet (side: %d, status %d).\n", 835 "failed to process ph1 packet (side: %d, status: %d).\n", 979 plog(LLV_ERROR, LOCATION, iph2->ph1->remote, 987 plog(LLV_ERROR, LOCATION, iph2->ph1->remote, 992 isakmp_info_send_n1(iph2->ph1, error, NULL); 1016 plog(LLV_ERROR, LOCATION, iph2->ph1->remote, 1225 "failed to process ph1 packet (side: %d, status: %d).\n", 1266 /* fixup ph2 ports for this ph1 */ 1378 isakmp_info_send_n1(iph2->ph1, error, NULL); 1393 plog(LLV_ERROR, LOCATION, iph2->ph1->remote [all...] |
| handler.h | 121 struct sockaddr *remote; /* remote address to negosiate ph1 */ 122 struct sockaddr *local; /* local address to negosiate ph1 */ 223 /* For limiting enumeration of ph1 tree */ 352 struct ph1handle *ph1; /* back pointer to isakmp status */ member in struct:ph2handle 370 struct sockaddr *remote; /* remote address to negosiate ph1 */
|
| pfkey.c | 936 natt_type = iph2->ph1->natt_options->encaps_type; 1169 sa_args.l_natt_type = iph2->ph1->natt_options->encaps_type; 1170 sa_args.l_natt_sport = extract_port(iph2->ph1->remote); 1171 sa_args.l_natt_dport = extract_port(iph2->ph1->local); 1174 sa_args.l_natt_frag = iph2->ph1->rmconf->esp_frag; 1342 * remain it and refresh all the references between ph1 and ph2 to use. 1455 sa_args.l_natt_sport = extract_port(iph2->ph1->local); 1456 sa_args.l_natt_dport = extract_port(iph2->ph1->remote); 1459 sa_args.l_natt_frag = iph2->ph1->rmconf->esp_frag; 1659 iph1hint = iph2->ph1; [all...] |
| isakmp_inf.c | 627 "No ph1 handler found, could not send DELETE_SA\n"); 806 struct ph1handle *iph1 = iph2->ph1; 849 * When ph1->skeyid_a == NULL, send message without encoding. 959 tmp = oakley_do_encrypt(iph2->ph1, iph2->sendbuf, iph2->ivm->ive, 968 if (isakmp_send(iph2->ph1, iph2->sendbuf) < 0) { 1469 * DPD will be reactivated when a new ph1 will be negociated
|
| oakley.c | 558 res = oakley_prf(iph2->ph1->skeyid_d, buf, iph2->ph1); 631 this = oakley_prf(iph2->ph1->skeyid_d, seed, 632 iph2->ph1);
|
| isakmp_cfg.c | 1241 tmp = oakley_do_encrypt(iph2->ph1, iph2->sendbuf, 1250 if (isakmp_send(iph2->ph1, iph2->sendbuf) < 0) {
|
| ipsec_doi.c | 1012 pr = cmpsaprop_alloc(iph2->ph1, q1, q2, iph2->side); 3087 if (iph2->ph1->natt_flags & NAT_DETECTED) { 3088 int udp_diff = iph2->ph1->natt_options->mode_udp_diff;
|