Lines Matching refs:dhgrp
250 if (sa->dhgrp) {
251 if (sa->dhgrp->prime && sa->dhgrp->gen1) {
257 oakley_dhgrp_free(sa->dhgrp);
260 if (oakley_setdhgroup(sa->dh_group, &sa->dhgrp) == -1) {
261 sa->dhgrp = NULL;
376 if (tsap->dhgrp != NULL)
377 oakley_dhgrp_free(tsap->dhgrp);
447 if (sa.dhgrp != NULL)
448 oakley_dhgrp_free(sa.dhgrp);
476 sa->dhgrp = racoon_calloc(1, sizeof(struct dhgroup));
477 if (!sa->dhgrp)
537 sa->dhgrp->type = type;
543 sa->dhgrp->prime = val;
549 sa->dhgrp->gen1 = ntohs(d->lorv);
552 sa->dhgrp->gen1 = 0;
555 memcpy(&sa->dhgrp->gen1, d + 1, len);
556 sa->dhgrp->gen1 = ntohl(sa->dhgrp->gen1);
563 sa->dhgrp->gen2 = ntohs(d->lorv);
566 sa->dhgrp->gen2 = 0;
569 memcpy(&sa->dhgrp->gen2, d + 1, len);
570 sa->dhgrp->gen2 = ntohl(sa->dhgrp->gen2);
575 sa->dhgrp->curve_a = val;
579 sa->dhgrp->curve_b = val;
651 sa->dhgrp->order = val;
3798 if (match->dhgrp != NULL) {
3799 newsa->dhgrp = racoon_calloc(1, sizeof(struct dhgroup));
3800 memcpy(newsa->dhgrp, match->dhgrp, sizeof (struct dhgroup));