From ac89960fbe89141aea31da9a329bfa39d67eede7 Mon Sep 17 00:00:00 2001 From: "leleraffa97@hotmail.it" Date: Fri, 23 Jun 2017 12:18:24 +0200 Subject: Order and update of the struct Separation of boot and login sections Improuved program manager system --- sw/z80/kernel/login.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sw/z80/kernel/login.c (limited to 'sw/z80/kernel/login.c') diff --git a/sw/z80/kernel/login.c b/sw/z80/kernel/login.c new file mode 100644 index 0000000..5e100bf --- /dev/null +++ b/sw/z80/kernel/login.c @@ -0,0 +1,12 @@ +#include "login.h" +#include "string.h" + +int8_t authenticate(const char *pwd) { + + return !memcmp(PWD_ADDR, pwd, PWD_SIZE); +} + +void set_pwd(const char *pwd) { + + memcpy(PWD_ADDR, pwd, PWD_SIZE); +} \ No newline at end of file -- cgit v1.2.1