summaryrefslogtreecommitdiffstats
path: root/sw/z80/kernel/login.c
blob: 5e100bf6afd325d24bd590770ca64fed50c7018f (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}