Lines Matching refs:dhgrp
172 oakley_dhgrp_free(dhgrp) in oakley_dhgrp_free() argument
173 struct dhgroup *dhgrp; in oakley_dhgrp_free()
175 if (dhgrp->prime)
176 vfree(dhgrp->prime);
177 if (dhgrp->curve_a)
178 vfree(dhgrp->curve_a);
179 if (dhgrp->curve_b)
180 vfree(dhgrp->curve_b);
181 if (dhgrp->order)
182 vfree(dhgrp->order);
183 racoon_free(dhgrp);
334 oakley_setdhgroup(group, dhgrp) in oakley_setdhgroup() argument
336 struct dhgroup **dhgrp;
340 *dhgrp = NULL; /* just make sure, initialize */
356 *dhgrp = racoon_calloc(1, sizeof(struct dhgroup));
357 if (*dhgrp == NULL) {
364 memcpy(*dhgrp, g, sizeof(*g));
365 (*dhgrp)->prime = vdup(g->prime);