diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | auth.c | 11 | ||||
-rw-r--r-- | blog.c | 6 |
3 files changed, 12 insertions, 7 deletions
@@ -1,7 +1,7 @@ .POSIX: CFLAGS=-static -OBJECTS=blog.o post.o +OBJECTS=blog.o post.o auth.o all: blog @@ -0,0 +1,11 @@ +#define _XOPEN_SOURCE 700 +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include "blog.h" + +int verify_creds(const char *username, const char *password) +{ + printf("verifying '%s'/'%s'\n", username ? username : "", password ? password : ""); + return 1; +} @@ -6,12 +6,6 @@ extern char **environ; -int verify_creds(const char *username, const char *password) -{ - printf("verifying '%s'/'%s'\n", username ? username : "", password ? password : ""); - return 1; -} - int handle_post(void) { |