myMPD
Internal API documentation
Loading...
Searching...
No Matches
pin.c File Reference

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>
Include dependency graph for pin.c:

Functions

bool pin_set (sds workdir)
 
bool pin_validate (const char *pin, const char *hash)
 

Detailed Description

myMPD PIN functions

Function Documentation

◆ pin_set()

bool pin_set ( sds  workdir)

Reads the pin from stdin and sets it

Parameters
workdirworking directory
Returns
true on success else false

◆ pin_validate()

bool pin_validate ( const char *  pin,
const char *  hash 
)

Validates the pin

Parameters
pinpin to validate
hashhash to validate against
Returns
true on success else false