Lines Matching full:primary

530  * Merges "additional" options to "primary" and returns the result.
531 * NB. Some options from primary have primacy.
534 sshauthopt_merge(const struct sshauthopt *primary, in sshauthopt_merge() argument
549 /* Prefer access lists from primary. */ in sshauthopt_merge()
551 tmp = primary->required_from_host_cert; in sshauthopt_merge()
556 tmp = primary->required_from_host_keys; in sshauthopt_merge()
564 * prefer the primary. in sshauthopt_merge()
566 ret->force_tun_device = primary->force_tun_device; in sshauthopt_merge()
569 if (primary->nenv > 0) { in sshauthopt_merge()
571 primary->env, primary->nenv) != 0) in sshauthopt_merge()
578 if (primary->npermitopen > 0) { in sshauthopt_merge()
580 primary->permitopen, primary->npermitopen) != 0) in sshauthopt_merge()
588 if (primary->npermitlisten > 0) { in sshauthopt_merge()
590 primary->permitlisten, primary->npermitlisten) != 0) in sshauthopt_merge()
598 #define OPTFLAG_AND(x) ret->x = (primary->x == 1) && (additional->x == 1) in sshauthopt_merge()
599 #define OPTFLAG_OR(x) ret->x = (primary->x == 1) || (additional->x == 1) in sshauthopt_merge()
612 if (primary->valid_before != 0) in sshauthopt_merge()
613 ret->valid_before = primary->valid_before; in sshauthopt_merge()
622 if (primary->force_command != NULL && in sshauthopt_merge()
624 if (strcmp(primary->force_command, in sshauthopt_merge()
627 ret->force_command = strdup(primary->force_command); in sshauthopt_merge()
634 } else if (primary->force_command != NULL) { in sshauthopt_merge()
636 primary->force_command)) == NULL) in sshauthopt_merge()