[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/tests
From: |
gsasl-commit |
Subject: |
CVS gsasl/tests |
Date: |
Sun, 07 Nov 2004 19:00:59 +0100 |
Update of /home/cvs/gsasl/tests
In directory dopio:/tmp/cvs-serv9492
Modified Files:
md5file.c Makefile.am
Log Message:
Fix distcheck.
--- /home/cvs/gsasl/tests/md5file.c 2004/10/14 19:18:19 1.2
+++ /home/cvs/gsasl/tests/md5file.c 2004/11/07 18:00:58 1.3
@@ -38,10 +38,22 @@
void
doit (void)
{
+ char *md5file;
char key[BUFSIZ];
size_t keylen = BUFSIZ - 1;
int res;
+ md5file = getenv ("MD5FILE");
+ if (md5file)
+ {
+ char *p;
+ if ((p = strchr (md5file, '=')))
+ md5file = p;
+ }
+
+ if (!md5file)
+ md5file = "cram-md5.pwd";
+
keylen = sizeof (key) - 1;
res = gsasl_md5pwd_get_password ("non-existing-file", "user", key, &keylen);
if (res == GSASL_FOPEN_ERROR)
@@ -50,7 +62,7 @@
fail ("non-existing-file FAIL (%d): %s\n", res, gsasl_strerror (res));
keylen = sizeof (key) - 1;
- res = gsasl_md5pwd_get_password ("cram-md5.pwd", BILL, key, &keylen);
+ res = gsasl_md5pwd_get_password (md5file, BILL, key, &keylen);
if (res == GSASL_OK)
success ("user-found OK\n");
else
@@ -62,14 +74,14 @@
success ("user-password OK\n");
keylen = 5;
- res = gsasl_md5pwd_get_password ("cram-md5.pwd", BILL, key, &keylen);
+ res = gsasl_md5pwd_get_password (md5file, BILL, key, &keylen);
if (res == GSASL_TOO_SMALL_BUFFER)
success ("too-small-buffer OK\n");
else
fail ("too-small-buffer FAIL (%d): %s\n", res, gsasl_strerror (res));
keylen = sizeof (key) - 1;
- res = gsasl_md5pwd_get_password ("cram-md5.pwd", "user", key, &keylen);
+ res = gsasl_md5pwd_get_password (md5file, "user", key, &keylen);
if (res == GSASL_AUTHENTICATION_ERROR)
success ("no-such-user OK\n");
else
--- /home/cvs/gsasl/tests/Makefile.am 2004/10/31 22:30:34 1.30
+++ /home/cvs/gsasl/tests/Makefile.am 2004/11/07 18:00:58 1.31
@@ -32,7 +32,8 @@
SHISHI_CONFIG=ignore-this-warning \
SHISHI_HOME=ignore-this-warning \
SHISHI_USER=ignore-this-warning \
- THREADSAFETY_FILES=$(top_srcdir)/lib/*/*.c
+ THREADSAFETY_FILES=$(top_srcdir)/lib/*/*.c \
+ MD5FILE=$(srcdir)/cram-md5.pwd
ctests = simple cram-md5 digest-md5 md5file \
old-cram-md5
- CVS gsasl/tests, gsasl-commit, 2004/11/07
- CVS gsasl/tests,
gsasl-commit <=
- CVS gsasl/tests, gsasl-commit, 2004/11/18
- CVS gsasl/tests, gsasl-commit, 2004/11/25
- CVS gsasl/tests, gsasl-commit, 2004/11/29
- CVS gsasl/tests, gsasl-commit, 2004/11/29
- CVS gsasl/tests, gsasl-commit, 2004/11/29
- CVS gsasl/tests, gsasl-commit, 2004/11/29
- CVS gsasl/tests, gsasl-commit, 2004/11/29
- CVS gsasl/tests, gsasl-commit, 2004/11/29
- CVS gsasl/tests, gsasl-commit, 2004/11/29
- CVS gsasl/tests, gsasl-commit, 2004/11/30