[vlc-commits] [Git][videolan/vlc][master] test: keystore: check querying without providing realm

François Cartegnie (@fcartegnie) gitlab at videolan.org
Wed Sep 15 15:16:09 UTC 2021



François Cartegnie pushed to branch master at VideoLAN / VLC


Commits:
20bc495f by Francois Cartegnie at 2021-09-15T14:54:32+00:00
test: keystore: check querying without providing realm

HTTP realm is provided by reply headers. Sending it proactively
can then only be done by matching the url. (RFC 7617)

- - - - -


1 changed file:

- test/src/misc/keystore.c


Changes:

=====================================
test/src/misc/keystore.c
=====================================
@@ -165,6 +165,12 @@ static const struct testcase
     { true, HTTP("ex.com/testing/good_path/ks_find_realm", "Realm"),
       { "user4", "pwd4", "Realm", "Basic" }, {}, {}, false },
 
+    { true, HTTP("ex.com/testing/good_path/ks_find_realm", NULL),
+      { "user4", "pwd4", "Realm", "Basic" }, {}, {}, false },
+
+    { false, HTTP("ex.com/testing/wrong_path/ks_find_realm", NULL),
+        {}, {}, {}, false },
+
     { true, HTTP("ex.com/testing/good_path/another_path/ks_find_realm", "Realm"),
       { "user4", "pwd4", "Realm", "Basic" }, {}, {}, false },
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/20bc495f72df6ee14f445c492aa0452968008f50

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/20bc495f72df6ee14f445c492aa0452968008f50
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list