Lines Matching refs:dhgrp
168 oakley_dhgrp_free(dhgrp) in oakley_dhgrp_free() argument
169 struct dhgroup *dhgrp; in oakley_dhgrp_free()
171 if (dhgrp->prime)
172 vfree(dhgrp->prime);
173 if (dhgrp->curve_a)
174 vfree(dhgrp->curve_a);
175 if (dhgrp->curve_b)
176 vfree(dhgrp->curve_b);
177 if (dhgrp->order)
178 vfree(dhgrp->order);
179 racoon_free(dhgrp);
330 oakley_setdhgroup(group, dhgrp) in oakley_setdhgroup() argument
332 struct dhgroup **dhgrp;
336 *dhgrp = NULL; /* just make sure, initialize */
352 *dhgrp = racoon_calloc(1, sizeof(struct dhgroup));
353 if (*dhgrp == NULL) {
360 memcpy(*dhgrp, g, sizeof(*g));
361 (*dhgrp)->prime = vdup(g->prime);