Lines Matching refs:hunks
927 key_handler(void *context, const char *filename, char **hunks, int num_hunks, int lineno)
937 if (strcasecmp(hunks[1], "in")) {
938 ERROR("Expecting tsig key class IN, got %s.", hunks[1]);
942 if (strcasecmp(hunks[2], "key")) {
943 ERROR("expecting tsig key type KEY, got %s", hunks[2]);
948 val = strtol(hunks[3], &endptr, 10);
949 if (*endptr != 0 || endptr == hunks[3]) {
950 ERROR("Invalid key flags: %s", hunks[3]);
957 val = strtol(hunks[4], &endptr, 10);
958 if (*endptr != 0 || endptr == hunks[4]) {
959 ERROR("Invalid protocol number: %s", hunks[4]);
966 val = strtol(hunks[5], &endptr, 10);
967 if (*endptr != 0 || endptr == hunks[5]) {
968 ERROR("Invalid protocol number: %s", hunks[5]);
975 key->name = dns_pres_name_parse(hunks[0]);
977 ERROR("Invalid key name: %s", hunks[0]);
981 error = srp_base64_parse(hunks[6], &len, keybuf, sizeof keybuf);
989 ERROR("Invalid (null) secret for key %s", hunks[0]);
994 ERROR("Unable to allocate space for secret for key %s", hunks[0]);