gsasl-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS gsasl/lib/digest-md5


From: gsasl-commit
Subject: CVS gsasl/lib/digest-md5
Date: Sun, 19 Dec 2004 18:45:10 +0100

Update of /home/cvs/gsasl/lib/digest-md5
In directory dopio:/tmp/cvs-serv2274

Modified Files:
        test-parser.c 
Log Message:
Add.


--- /home/cvs/gsasl/lib/digest-md5/test-parser.c        2004/12/19 17:31:51     
1.8
+++ /home/cvs/gsasl/lib/digest-md5/test-parser.c        2004/12/19 17:45:09     
1.9
@@ -176,7 +176,7 @@
   memset (buf16, 'Q', 16);
 
   rc = digest_md5_hmac (buf32, buf16, "nonce", 1, "cnonce", 
DIGEST_MD5_QOP_AUTH,
-                       "authzid", "digesturi", ":", 0,
+                       "authzid", "digesturi", 1, 0,
                        NULL, NULL, NULL, NULL);
   if (rc != 0)
     abort ();
@@ -185,5 +185,15 @@
     abort ();
   printf ("digest: `%s': PASS\n", buf32);
 
+  rc = digest_md5_hmac (buf32, buf16, "nonce", 1, "cnonce", 
DIGEST_MD5_QOP_AUTH,
+                       "authzid", "digesturi", 0, 0,
+                       NULL, NULL, NULL, NULL);
+  if (rc != 0)
+    abort ();
+  buf32[32] = '\0';
+  if (strcmp (buf32, "6c1f58bfa46e9c225b93745c84204efd") != 0)
+    abort ();
+  printf ("digest: `%s': PASS\n", buf32);
+
   return 0;
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]