/* Reply with the transform we chose. */ int ike_phase_1_responder_send_SA(struct message *msg) { /* Add the SA payload with the transform that was chosen. */ if (message_add_sa_payload(msg)) return -1; /* Advertise OpenBSD isakmpd. */ if (add_vendor_openbsd(msg)) return -1; /* Advertise NAT-T capability. */ if (nat_t_add_vendor_payloads(msg)) return -1; /* Advertise DPD capability. */ if (dpd_add_vendor_payload(msg)) return -1; return 0; }
/* Reply with the transform we chose. */ int ike_phase_1_responder_send_SA (struct message *msg) { /* Add the SA payload with the transform that was chosen. */ return message_add_sa_payload (msg); }