Lines Matching refs:filename
70 static int wireguard_peer_new_static(Wireguard *w, const char *filename, unsigned section_line, Wir… in wireguard_peer_new_static() argument
77 assert(filename); in wireguard_peer_new_static()
80 r = config_section_new(filename, section_line, &n); in wireguard_peer_new_static()
455 const char *filename, in config_parse_wireguard_listen_port() argument
478 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_wireguard_listen_port()
490 const char *filename, in wireguard_decode_key_and_warn() argument
500 assert(filename); in wireguard_decode_key_and_warn()
509 (void) warn_file_is_world_accessible(filename, NULL, unit, line); in wireguard_decode_key_and_warn()
515 log_syntax(unit, LOG_WARNING, filename, line, r, in wireguard_decode_key_and_warn()
520 log_syntax(unit, LOG_WARNING, filename, line, 0, in wireguard_decode_key_and_warn()
532 const char *filename, in config_parse_wireguard_private_key() argument
548 return wireguard_decode_key_and_warn(rvalue, w->private_key, unit, filename, line, lvalue); in config_parse_wireguard_private_key()
553 const char *filename, in config_parse_wireguard_private_key_file() argument
579 if (path_simplify_and_warn(path, PATH_CHECK_ABSOLUTE, unit, filename, line, lvalue) < 0) in config_parse_wireguard_private_key_file()
587 const char *filename, in config_parse_wireguard_peer_key() argument
605 r = wireguard_peer_new_static(w, filename, section_line, &peer); in config_parse_wireguard_peer_key()
611 unit, filename, line, lvalue); in config_parse_wireguard_peer_key()
621 const char *filename, in config_parse_wireguard_preshared_key_file() argument
640 r = wireguard_peer_new_static(w, filename, section_line, &peer); in config_parse_wireguard_preshared_key_file()
654 if (path_simplify_and_warn(path, PATH_CHECK_ABSOLUTE, unit, filename, line, lvalue) < 0) in config_parse_wireguard_preshared_key_file()
664 const char *filename, in config_parse_wireguard_allowed_ips() argument
687 r = wireguard_peer_new_static(w, filename, section_line, &peer); in config_parse_wireguard_allowed_ips()
701 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_wireguard_allowed_ips()
708 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_wireguard_allowed_ips()
719 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_wireguard_allowed_ips()
742 const char *filename, in config_parse_wireguard_endpoint() argument
760 assert(filename); in config_parse_wireguard_endpoint()
767 r = wireguard_peer_new_static(w, filename, section_line, &peer); in config_parse_wireguard_endpoint()
797 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_wireguard_endpoint()
808 log_syntax(unit, LOG_WARNING, filename, line, 0, in config_parse_wireguard_endpoint()
817 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_wireguard_endpoint()
837 const char *filename, in config_parse_wireguard_keepalive() argument
858 r = wireguard_peer_new_static(w, filename, section_line, &peer); in config_parse_wireguard_keepalive()
867 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_wireguard_keepalive()
882 const char *filename, in config_parse_wireguard_route_table() argument
896 assert(filename); in config_parse_wireguard_route_table()
909 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_wireguard_route_table()
920 const char *filename, in config_parse_wireguard_peer_route_table() argument
935 assert(filename); in config_parse_wireguard_peer_route_table()
944 r = wireguard_peer_new_static(w, filename, section_line, &peer); in config_parse_wireguard_peer_route_table()
963 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_wireguard_peer_route_table()
976 const char *filename, in config_parse_wireguard_route_priority() argument
989 assert(filename); in config_parse_wireguard_route_priority()
1001 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_wireguard_route_priority()
1011 const char *filename, in config_parse_wireguard_peer_route_priority() argument
1025 assert(filename); in config_parse_wireguard_peer_route_priority()
1033 r = wireguard_peer_new_static(w, filename, section_line, &peer); in config_parse_wireguard_peer_route_priority()
1045 log_syntax(unit, LOG_WARNING, filename, line, r, in config_parse_wireguard_peer_route_priority()
1080 static int wireguard_read_key_file(const char *filename, uint8_t dest[static WG_KEY_LEN]) { in wireguard_read_key_file() argument
1085 if (!filename) in wireguard_read_key_file()
1090 (void) warn_file_is_world_accessible(filename, NULL, NULL, 0); in wireguard_read_key_file()
1093 AT_FDCWD, filename, UINT64_MAX, SIZE_MAX, in wireguard_read_key_file()
1117 peer->section->filename, peer->section->line); in wireguard_peer_verify()
1124 peer->section->filename, peer->preshared_key_file, in wireguard_peer_verify()
1130 static int wireguard_verify(NetDev *netdev, const char *filename) { in wireguard_verify() argument
1147 "Ignoring network device.", filename); in wireguard_verify()