Lines Matching refs:dhgrp
145 oakley_dhgrp_free(dhgrp)
146 struct dhgroup *dhgrp;
148 if (dhgrp->prime)
149 vfree(dhgrp->prime);
150 if (dhgrp->curve_a)
151 vfree(dhgrp->curve_a);
152 if (dhgrp->curve_b)
153 vfree(dhgrp->curve_b);
154 if (dhgrp->order)
155 vfree(dhgrp->order);
156 racoon_free(dhgrp);
265 oakley_setdhgroup(group, dhgrp)
267 struct dhgroup **dhgrp;
271 *dhgrp = NULL; /* just make sure, initialize */
287 *dhgrp = racoon_calloc(1, sizeof(struct dhgroup));
288 if (*dhgrp == NULL) {
295 memcpy(*dhgrp, g, sizeof(*g));
296 (*dhgrp)->prime = vdup(g->prime);