mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-16 06:59:55 -05:00
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:
parent
a33c04c0cc
commit
5ff21c3bdd
6 changed files with 365 additions and 49 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue