Lines Matching refs:tsap
341 struct isakmpsa sa, *s, *tsap; local
354 tsap = sap != NULL ? sap : &sa;
356 memset(tsap, 0, sizeof(*tsap));
357 if (t2isakmpsa(trns, tsap) < 0)
367 (long)s->lifetime, (long)tsap->lifetime);
369 s->lifebyte, tsap->lifebyte);
374 tsap->enctype));
376 s->encklen, tsap->encklen);
381 tsap->hashtype));
386 tsap->authmethod));
391 tsap->dh_group));
394 if (tsap->lifebyte > s->lifebyte) ;
400 if(tsap->enctype == s->enctype &&
401 tsap->authmethod == authmethod &&
402 tsap->hashtype == s->hashtype &&
403 tsap->dh_group == s->dh_group &&
404 tsap->encklen == s->encklen) {
411 if ((tsap->lifetime > s->lifetime) ||
412 (tsap->lifebyte > s->lifebyte))
418 if (tsap->lifetime < s->lifetime)
419 s->lifetime = tsap->lifetime;
420 if (tsap->lifebyte < s->lifebyte)
421 s->lifebyte = tsap->lifebyte;
426 if ((tsap->lifetime != s->lifetime) ||
427 (tsap->lifebyte != s->lifebyte))
442 if (tsap->dhgrp != NULL){
443 oakley_dhgrp_free(tsap->dhgrp);
444 tsap->dhgrp = NULL;
450 s->lifetime = tsap->lifetime;
451 s->lifebyte = tsap->lifebyte;
455 s->lifetime = tsap->lifetime;
456 s->lifebyte = tsap->lifebyte;
460 if (tsap->lifetime < s->lifetime)
461 s->lifetime = tsap->lifetime;
462 if (tsap->lifebyte < s->lifebyte)
463 s->lifebyte = tsap->lifebyte;