Lines Matching refs:pp1
186 * pp1: peer's proposal.
194 cmpsaprop_alloc(ph1, pp1, pp2, side)
196 const struct saprop *pp1, *pp2;
212 newpp->prop_no = pp1->prop_no;
219 newpp->lifetime = pp1->lifetime;
220 newpp->lifebyte = pp1->lifebyte;
221 newpp->pfs_group = pp1->pfs_group;
225 if (pp1->lifetime > pp2->lifetime) {
229 (int)pp2->lifetime, (int)pp1->lifetime);
232 if (pp1->lifebyte > pp2->lifebyte) {
236 pp2->lifebyte, pp1->lifebyte);
239 newpp->lifetime = pp1->lifetime;
240 newpp->lifebyte = pp1->lifebyte;
243 if (pp2->pfs_group != 0 && pp1->pfs_group != pp2->pfs_group) {
247 pp2->pfs_group, pp1->pfs_group);
250 newpp->pfs_group = pp1->pfs_group;
255 if (pp1->lifetime <= pp2->lifetime) {
256 newpp->lifetime = pp1->lifetime;
263 (int)pp2->lifetime, (int)pp1->lifetime);
267 if (pp1->lifebyte > pp2->lifebyte) {
273 pp2->lifebyte, pp1->lifebyte);
275 newpp->lifebyte = pp1->lifebyte;
281 if (pp1->lifetime != pp2->lifetime) {
285 (int)pp2->lifetime, (int)pp1->lifetime);
289 if (pp1->lifebyte != pp2->lifebyte) {
293 pp2->lifebyte, pp1->lifebyte);
296 if (pp1->pfs_group != pp2->pfs_group) {
300 pp2->pfs_group, pp1->pfs_group);
303 newpp->lifetime = pp1->lifetime;
304 newpp->lifebyte = pp1->lifebyte;
305 newpp->pfs_group = pp1->pfs_group;
320 if (*pp1->sctx.ctx_str && !(*pp2->sctx.ctx_str)) {
325 if (!(*pp1->sctx.ctx_str) && *pp2->sctx.ctx_str) {
331 if (*pp1->sctx.ctx_str && *pp2->sctx.ctx_str) {
332 if (pp1->sctx.ctx_doi == pp2->sctx.ctx_doi)
333 newpp->sctx.ctx_doi = pp1->sctx.ctx_doi;
337 pp2->sctx.ctx_doi, pp1->sctx.ctx_doi);
341 if (pp1->sctx.ctx_alg == pp2->sctx.ctx_alg)
342 newpp->sctx.ctx_alg = pp1->sctx.ctx_alg;
346 pp2->sctx.ctx_alg, pp1->sctx.ctx_alg);
350 if ((pp1->sctx.ctx_strlen != pp2->sctx.ctx_strlen) ||
351 memcmp(pp1->sctx.ctx_str, pp2->sctx.ctx_str,
352 pp1->sctx.ctx_strlen) != 0) {
355 pp2->sctx.ctx_str, pp1->sctx.ctx_str);
358 newpp->sctx.ctx_strlen = pp1->sctx.ctx_strlen;
359 memcpy(newpp->sctx.ctx_str, pp1->sctx.ctx_str,
360 pp1->sctx.ctx_strlen);
366 for (pr1 = pp1->head; pr1; pr1 = pr1->next)
374 pr1 = pp1->head;
387 for (pr1 = pp1->head; pr1; pr1 = pr1->next) {
546 /* take a single match between saprop. returns 0 if pp1 equals to pp2. */
548 cmpsaprop(pp1, pp2)
549 const struct saprop *pp1, *pp2;
551 if (pp1->pfs_group != pp2->pfs_group) {
554 pp1->pfs_group, pp2->pfs_group);
558 if (pp1->lifetime > pp2->lifetime) {
561 (int)pp1->lifetime, (int)pp2->lifetime);
564 if (pp1->lifebyte > pp2->lifebyte) {
567 pp1->lifebyte, pp2->lifebyte);