#ifdef ENABLE_NATT
#include "nattraversal.h"
#endif
-#include "ikev2_rfc.h"
/* %%%
* modules for ipsec sa spec
}
newtr->trns_no = t++;
- newtr->trns_id = ipsecdoi_authalg2trnsid(a->alg); // IKEv1 only
+ newtr->trns_id = ipsecdoi_authalg2trnsid(a->alg); // IKEv1 only
newtr->authtype = a->alg;
inssatrns(pr, newtr);
"unknown proto_id (%d).\n", pr->proto_id);
goto err;
}
-
+
/* no proposal found */
if (pr->head == NULL) {
plog(ASL_LEVEL_ERR, "no algorithms found.\n");
}
skip1:
- //%%%%%%s IKEv2 - no support for bundle - fix this - return error if bundle ???
- // %%%% need special handling for ipcomp
for (req = sp_main->req; req; req = req->next) {
struct saproto *newpr;
caddr_t paddr = NULL;
{
struct saprop *newpp = NULL, *pp0, *pp_peer = NULL;
struct saproto *newpr = NULL, *pr;
- struct prop_pair **pair;
+ struct prop_pair **pair = NULL;
int error = -1;
int i;
/* get proposal pair */
if (iph2->version == ISAKMP_VERSION_NUMBER_IKEV1)
pair = get_proppair(iph2->sa, IPSECDOI_TYPE_PH2);
+
if (pair == NULL)
goto end;
if (newtr == NULL)
return NULL;
newtr->trns_no = tr->trns_no;
- newtr->trns_type = tr->trns_type;
newtr->trns_id = tr->trns_id;
newtr->encklen = tr->encklen;
newtr->authtype = tr->authtype;
newtr = newsatrns();
if (newtr) {
newtr->trns_no = p->trns_no;
- newtr->trns_type = p->trns_type;
newtr->trns_id = p->trns_id;
newtr->encklen = p->encklen;
newtr->authtype = p->authtype;