You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
677 B

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include "ldapauth.h"
int main(int argc, char *argv[]) {
char buf[1024];
oal_config_t *config;
if (argc < 2) {
fprintf(stderr, "Usage: %s <config>\n", argv[0]);
return 1;
}
config = (oal_config_t *) calloc (1, sizeof (oal_config_t));
if (parse_config(config, argv[1]) != 0) {
fprintf(stderr, "config parser failed: %s\n", config->error);
return 1;
}
if (check_config(config) != 0) {
fprintf(stderr, "config check failed: %s\n", config->error);
return 1;
}
while (fgets(buf, sizeof(buf), stdin) != NULL) {
;
}
free(config);
return 0;
}