[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/src
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/src |
Date: |
Wed, 05 Jan 2005 03:40:28 +0100 |
Update of /home/cvs/gsasl/lib/src
In directory dopio:/tmp/cvs-serv11961
Modified Files:
saslprep.c
Log Message:
If we have pr29 functionality, use it to verify output.
--- /home/cvs/gsasl/lib/src/saslprep.c 2004/12/15 00:41:12 1.4
+++ /home/cvs/gsasl/lib/src/saslprep.c 2005/01/05 02:40:28 1.5
@@ -1,5 +1,5 @@
/* saslprep.c --- Internationalized SASL string processing.
- * Copyright (C) 2002, 2003, 2004 Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2005 Simon Josefsson
*
* This file is part of GNU SASL Library.
*
@@ -23,6 +23,9 @@
#if WITH_SASLPREP
# include <stringprep.h>
+# if HAVE_PR29_H
+# include <pr29.h>
+# endif
#endif
/**
@@ -59,6 +62,19 @@
*out = NULL;
return GSASL_SASLPREP_ERROR;
}
+
+# if HAVE_PR29_8Z
+ if (pr29_8z (out) != PR29_SUCCESS)
+ {
+ free (*out);
+ *out = NULL;
+ if (stringpreprc)
+ *stringpreprc = STRINGPREP_NFKC_FAILED;
+
+ return GSASL_SASLPREP_ERROR;
+ }
+#endif
+
#else
size_t i, inlen = strlen (in);