]> git.armaanb.net Git - opendoas.git/blob - libopenbsd/auth_userokay.c
Add compatibility functions from OpenBSD.
[opendoas.git] / libopenbsd / auth_userokay.c
1 /* Copyright 2015 Nathan Holstein */
2
3 #include <errno.h>
4 #include <stdio.h>
5 #include <stdlib.h>
6
7 #include "openbsd.h"
8
9 int
10 auth_userokay(char *name, char *style, char *type, char *password)
11 {
12         if (style || type || password) {
13                 fprintf(stderr, "auth_userokay(name, NULL, NULL, NULL)!\n");
14                 exit(1);
15         }
16
17         fprintf(stderr, "failing auth check for %s\n", name);
18
19         return 0;
20 }
21