Lines Matching refs:auth
84 static const char *auth[] = {"?", "psk", "rsa"}; variable
226 if (rp->auth) { in ipsecctl_free_rule()
227 free(rp->auth->srcid); in ipsecctl_free_rule()
228 free(rp->auth->dstid); in ipsecctl_free_rule()
229 free(rp->auth); in ipsecctl_free_rule()
317 if ((r1->auth == NULL) && (r2->auth == NULL)) in ipsecctl_cmp_ident()
320 if ((r1->auth == NULL) || (r2->auth == NULL)) in ipsecctl_cmp_ident()
323 if (r1->auth->type != r2->auth->type) in ipsecctl_cmp_ident()
326 if (r1->auth->srcid != NULL) { in ipsecctl_cmp_ident()
327 if (r2->auth->srcid == NULL) in ipsecctl_cmp_ident()
330 if (strcmp(r1->auth->srcid, r2->auth->srcid)) in ipsecctl_cmp_ident()
334 if (r1->auth->dstid) { in ipsecctl_cmp_ident()
335 if (r2->auth->dstid == NULL) in ipsecctl_cmp_ident()
338 if (strcmp(r1->auth->dstid, r2->auth->dstid)) in ipsecctl_cmp_ident()
494 if (r->auth) { in ipsecctl_print_flow()
495 if (r->auth->srcid) in ipsecctl_print_flow()
496 printf(" srcid %s", r->auth->srcid); in ipsecctl_print_flow()
497 if (r->auth->dstid) in ipsecctl_print_flow()
498 printf(" dstid %s", r->auth->dstid); in ipsecctl_print_flow()
499 if (r->auth->type > 0) in ipsecctl_print_flow()
500 printf(" %s", auth[r->auth->type]); in ipsecctl_print_flow()
736 if (rp->auth) { in ipsecctl_show()
737 free(rp->auth->srcid); in ipsecctl_show()
738 free(rp->auth->dstid); in ipsecctl_show()
739 free(rp->auth); in ipsecctl_show()