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

myMPD PIN functions More...

#include "dist/sds/sds.h"
#include <stdbool.h>
Include dependency graph for pin.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool pin_set (sds workdir)
 
bool pin_validate (const char *pin, const char *pin_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