[Pkg-wmaker-commits] [wmbiff] 09/15: check that passwords with # can be parsed

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:03:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to tag wmbiff_0_4_15
in repository wmbiff.

commit b40ca0eb03c20cbb837efc2db0716537bc645f24
Author: bluehal <bluehal>
Date:   Fri Mar 28 08:16:46 2003 +0000

    check that passwords with # can be parsed
---
 wmbiff/test_wmbiff.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/wmbiff/test_wmbiff.c b/wmbiff/test_wmbiff.c
index a8b0e6a..0c33ab3 100644
--- a/wmbiff/test_wmbiff.c
+++ b/wmbiff/test_wmbiff.c
@@ -8,6 +8,14 @@
 #define UNUSED(x) x
 #endif
 
+#ifdef HAVE_MEMFROB
+#define DEFROB(x) memfrob(x, strlen(x))
+#define ENFROB(x) memfrob(x, strlen(x))
+#else
+#define DEFROB(x)
+#define ENFROB(x)
+#endif
+
 #include "Client.h"
 #include "passwordMgr.h"
 
@@ -212,6 +220,13 @@ int test_imap4creator(void) {
     }
     CKSTRING(m.u.pop_imap.authList, "cram-md5 plaintext");
 
+    if(imap4Create(&m, "imap:harry:has#pass at bar/\"mybox\":12 CRAm-md5 plainTEXt")) {
+        return 1;
+    }
+    CKSTRING(m.u.pop_imap.userName, "harry");
+    DEFROB(m.u.pop_imap.password);
+    CKSTRING(m.u.pop_imap.password, "has#pass");
+
 
     if(pop3Create(&m, "pop3:foo:@bar:12 cram-md5 plaintext")) {
         return 1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git



More information about the Pkg-wmaker-commits mailing list