diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/depends/target/libshairplay/03-fixpasswordauthitunes.patch | 22 | ||||
-rw-r--r-- | tools/depends/target/libshairplay/Makefile | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/tools/depends/target/libshairplay/03-fixpasswordauthitunes.patch b/tools/depends/target/libshairplay/03-fixpasswordauthitunes.patch new file mode 100644 index 0000000000..2db60b32f4 --- /dev/null +++ b/tools/depends/target/libshairplay/03-fixpasswordauthitunes.patch @@ -0,0 +1,22 @@ +From 8e6795779558d2828aef14078fefbcadd5323fa6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Juho=20V=C3=A4h=C3=A4-Herttua?= <juhovh@iki.fi> +Date: Mon, 24 Mar 2014 21:43:59 +0200 +Subject: [PATCH] Make password authentication work on iTunes again, fixes #20. + +--- + src/lib/raop.c | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +diff --git a/src/lib/raop.c b/src/lib/raop.c +index e5c6539..a58e92f 100644 +--- a/src/lib/raop.c.orig 2013-04-17 15:17:49.000000000 +0200 ++++ b/src/lib/raop.c 2014-03-24 23:22:30.000000000 +0100 +@@ -139,7 +139,7 @@ + } + + res = http_response_init("RTSP/1.0", 200, "OK"); +- if (strlen(raop->password)) { ++ if (strcmp(method, "OPTIONS") && strlen(raop->password)) { + const char *authorization; + + authorization = http_request_get_header(request, "Authorization"); diff --git a/tools/depends/target/libshairplay/Makefile b/tools/depends/target/libshairplay/Makefile index 4221e53701..71dbbb6f36 100644 --- a/tools/depends/target/libshairplay/Makefile +++ b/tools/depends/target/libshairplay/Makefile @@ -25,6 +25,7 @@ ifeq ($(OS),ios) cd $(PLATFORM); patch -p1 < ../xcode-llmvfix.patch endif cd $(PLATFORM); patch -p1 < ../02-fixipv4ipv6race.patch + cd $(PLATFORM); patch -p1 < ../03-fixpasswordauthitunes.patch cd $(PLATFORM); $(AUTORECONF) -vif cd $(PLATFORM); $(CONFIGURE) |