X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fraop.c;h=1994ed373e833d18399ab079ac0fddcad17a29aa;hb=268f72c87ed44283cc7d35e16198fed76353a098;hp=9aafe65b18ef654e01303b7060e96629862cbae3;hpb=a68fedbb434cf90caea9b83d7690e5465d1272df;p=deb_shairplay.git diff --git a/src/lib/raop.c b/src/lib/raop.c index 9aafe65..1994ed3 100644 --- a/src/lib/raop.c +++ b/src/lib/raop.c @@ -36,7 +36,7 @@ #define MAX_PASSWORD_LEN 64 /* MD5 as hex fits here */ -#define MAX_NONCE_LEN 33 +#define MAX_NONCE_LEN 32 struct raop_s { /* Callbacks for audio */ @@ -143,9 +143,10 @@ conn_request(void *ptr, http_request_t *request, http_response_t **response) authorization = http_request_get_header(request, "Authorization"); if (authorization) { + logger_log(&conn->raop->logger, LOGGER_DEBUG, "Our nonce: %s\n", conn->nonce); logger_log(&conn->raop->logger, LOGGER_DEBUG, "Authorization: %s\n", authorization); } - if (!digest_is_valid("AppleTV", raop->password, conn->nonce, method, authorization)) { + if (!digest_is_valid("AppleTV", raop->password, conn->nonce, method, http_request_get_url(request), authorization)) { char *authstr; int authstrlen;