Lines Matching defs:line
258 LOG(ERROR) << "frontend-quic-secret-file: each line must be a "
339 std::string line;
344 return line;
350 return line;
353 std::getline(in, line);
354 return line;
1657 // Reads PSK secrets from path, and parses each line. The result is
1670 std::string line;
1671 while (std::getline(f, line)) {
1673 if (line.empty() || line[0] == '#') {
1677 auto sep_it = std::find(std::begin(line), std::end(line), ':');
1678 if (sep_it == std::end(line)) {
1680 << ": could not fine separator at line " << lineno;
1684 if (sep_it == std::begin(line)) {
1685 LOG(ERROR) << SHRPX_OPT_PSK_SECRETS << ": empty identity at line "
1690 if (sep_it + 1 == std::end(line)) {
1691 LOG(ERROR) << SHRPX_OPT_PSK_SECRETS << ": empty secret at line "
1696 if (!util::is_hex_string(StringRef{sep_it + 1, std::end(line)})) {
1698 << ": secret must be hex string at line " << lineno;
1703 make_string_ref(config->balloc, StringRef{std::begin(line), sep_it});
1706 util::decode_hex(config->balloc, StringRef{sep_it + 1, std::end(line)});
1711 << ": identity has already been registered at line " << lineno;
1723 // Reads PSK secrets from path, and parses each line. The result is
1737 std::string line;
1738 while (std::getline(f, line)) {
1740 if (line.empty() || line[0] == '#') {
1744 auto sep_it = std::find(std::begin(line), std::end(line), ':');
1745 if (sep_it == std::end(line)) {
1747 << ": could not find separator at line " << lineno;
1751 if (sep_it == std::begin(line)) {
1752 LOG(ERROR) << SHRPX_OPT_CLIENT_PSK_SECRETS << ": empty identity at line "
1757 if (sep_it + 1 == std::end(line)) {
1758 LOG(ERROR) << SHRPX_OPT_CLIENT_PSK_SECRETS << ": empty secret at line "
1763 if (!util::is_hex_string(StringRef{sep_it + 1, std::end(line)})) {
1765 << ": secret must be hex string at line " << lineno;
1770 make_string_ref(config->balloc, StringRef{std::begin(line), sep_it});
1773 util::decode_hex(config->balloc, StringRef{sep_it + 1, std::end(line)});
4197 std::string line;
4199 while (std::getline(in, line)) {
4201 if (line.empty() || line[0] == '#') {
4204 auto eq = std::find(std::begin(line), std::end(line), '=');
4205 if (eq == std::end(line)) {
4206 LOG(ERROR) << "Bad configuration format in " << filename << " at line "
4212 if (parse_config(config, StringRef{std::begin(line), eq},
4213 StringRef{eq + 1, std::end(line)}, include_set,