raop: Add BA (Basic) and DA (Digest) HTTP authentication helpers

RAOP authentication is using standard HTTP challenge-response authentication
scheme. This patch adds two helper functions that generate the proper hash
(for both techniques) given a username, a password and session related tokens.
This commit is contained in:
Martin Blanchard 2016-11-06 12:54:06 -06:00 committed by Tanu Kaskinen
parent a33c04c0cc
commit 5ff21c3bdd
6 changed files with 365 additions and 49 deletions

View file

@ -32,4 +32,8 @@ int pa_raop_base64_decode(const char *str, void *data);
int pa_raop_md5_hash(const char *data, int len, char **str);
int pa_raop_basic_response(const char *user, const char *pwd, char **str);
int pa_raop_digest_response(const char *user, const char *realm, const char *password,
const char *nonce, const char *uri, char **str);
#endif