| 1070 | }; |
| 1071 | |
| 1072 | static enum protocol_allow_config parse_protocol_config(const char *key, |
| 1073 | const char *value) |
| 1074 | { |
| 1075 | if (!strcasecmp(value, "always")) |
| 1076 | return PROTOCOL_ALLOW_ALWAYS; |
| 1077 | else if (!strcasecmp(value, "never")) |
| 1078 | return PROTOCOL_ALLOW_NEVER; |
| 1079 | else if (!strcasecmp(value, "user")) |
| 1080 | return PROTOCOL_ALLOW_USER_ONLY; |
| 1081 | |
| 1082 | die(_("unknown value for config '%s': %s"), key, value); |
| 1083 | } |
| 1084 | |
| 1085 | static enum protocol_allow_config get_protocol_config(const char *type) |
| 1086 | { |
no test coverage detected