diff options
author | Isaac Boukris <iboukris@gmail.com> | 2017-07-18 21:46:21 +0300 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2017-09-15 14:09:08 +0200 |
commit | 56d949d31ad182a22bd3bad25b1a902b635d549d (patch) | |
tree | e95d973da761d9a87eeff98db678f84d7aed97aa /tests/server | |
parent | 65872efea74f16552e2e0e516164b01913fd706f (diff) | |
download | curl-56d949d31ad182a22bd3bad25b1a902b635d549d.tar.gz |
tests: add initial gssapi test using stub implementation
The stub implementation is pre-loaded using LD_PRELOAD
and emulates common gssapi uses (only builds if curl is
initially built with gssapi support).
The initial tests are currently disabled for debug builds
as LD_PRELOAD is not used then.
Ref: https://github.com/curl/curl/pull/1687
Diffstat (limited to 'tests/server')
-rw-r--r-- | tests/server/sws.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c index 993fefcf7..821497068 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -763,7 +763,20 @@ static int ProcessRequest(struct httprequest *req) logmsg("Authorization header found, as required"); } - if(!req->digest && strstr(req->reqbuf, "Authorization: Digest")) { + if(strstr(req->reqbuf, "Authorization: Negotiate")) { + /* Negotiate iterations */ + static long prev_testno = -1; + static long prev_partno = -1; + logmsg("Negotiate: prev_testno: %d, prev_partno: %d", + prev_testno, prev_partno); + if(req->testno != prev_testno) { + prev_testno = req->testno; + prev_partno = req->partno; + } + prev_partno += 1; + req->partno = prev_partno; + } + else if(!req->digest && strstr(req->reqbuf, "Authorization: Digest")) { /* If the client is passing this Digest-header, we set the part number to 1000. Not only to spice up the complexity of this, but to make Digest stuff to work in the test suite. */ |