summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2005-08-02 13:23:19 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2005-08-02 13:23:19 +0000
commit661d7dfa8e92db8a13f7d9c79c18e4b9f403878d (patch)
tree939610426d6737b1abd85e075a25a119476c4f19
parent727549a4dc0263867a97778e41edf81c6efd5f73 (diff)
Fix example usage in comment at the start of the SPA/NTLM code.
-rw-r--r--src/src/auths/auth-spa.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/src/auths/auth-spa.c b/src/src/auths/auth-spa.c
index bd7fd41ed..b0f52da12 100644
--- a/src/src/auths/auth-spa.c
+++ b/src/src/auths/auth-spa.c
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/auths/auth-spa.c,v 1.2 2004/12/29 10:55:58 ph10 Exp $ */
+/* $Cambridge: exim/src/src/auths/auth-spa.c,v 1.3 2005/08/02 13:23:19 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
@@ -85,6 +85,13 @@ int main (int argc, char ** argv)
challenge_str = argv [3];
+ if (spa_base64_to_bits ((char *)&challenge, sizeof(challenge),
+ (const char *)(challenge_str))<0)
+ {
+ printf("bad base64 data in challenge: %s\n", challenge_str);
+ exit (1);
+ }
+
spa_build_auth_response (&challenge, &response, username, password);
spa_bits_to_base64 (msgbuf, (unsigned char*)&response,
spa_request_length(&response));