|
myMPD
Internal API documentation
|
myMPD PIN functions More...
#include "compile_time.h"#include "src/lib/pin.h"#include "src/lib/log.h"#include "src/lib/sds_extras.h"#include "src/lib/state_files.h"#include <openssl/evp.h>#include <string.h>#include <termios.h>
Functions | |
| bool | pin_set (sds workdir) |
| bool | pin_validate (const char *pin, const char *hash) |
myMPD PIN functions
| bool pin_set | ( | sds | workdir | ) |
Reads the pin from stdin and sets it
| workdir | working directory |
| bool pin_validate | ( | const char * | pin, |
| const char * | hash | ||
| ) |
Validates the pin
| pin | pin to validate |
| hash | hash to validate against |