git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Testsuite: helpful diagnostic for configuration fault
[exim.git]
/
test
/
src
/
client.c
diff --git
a/test/src/client.c
b/test/src/client.c
index 251f58696a4405eb4ac77d9f77789a1c620f68bd..ac9a965e0d3569660453357b9a46dceede770756 100644
(file)
--- a/
test/src/client.c
+++ b/
test/src/client.c
@@
-85,6
+85,9
@@
latter needs a whole pile of tables. */
# define HAVE_OCSP
# include <gnutls/ocsp.h>
# endif
# define HAVE_OCSP
# include <gnutls/ocsp.h>
# endif
+# ifndef GNUTLS_NO_EXTENSIONS
+# define GNUTLS_NO_EXTENSIONS 0
+# endif
# define DH_BITS 768
# define DH_BITS 768
@@
-451,7
+454,7
@@
tls_session_init(void)
{
gnutls_session session;
{
gnutls_session session;
-gnutls_init(&session, GNUTLS_CLIENT);
+gnutls_init(&session, GNUTLS_CLIENT
| GNUTLS_NO_EXTENSIONS
);
gnutls_cipher_set_priority(session, default_cipher_priority);
gnutls_compression_set_priority(session, comp_priority);
gnutls_cipher_set_priority(session, default_cipher_priority);
gnutls_compression_set_priority(session, comp_priority);
@@
-838,8
+841,9
@@
if (tls_on_connect)
while (fgets(CS outbuffer, sizeof(outbuffer), stdin) != NULL)
{
int n = (int)strlen(CS outbuffer);
while (fgets(CS outbuffer, sizeof(outbuffer), stdin) != NULL)
{
int n = (int)strlen(CS outbuffer);
- while (n > 0 && isspace(outbuffer[n-1])) n--;
- outbuffer[n] = 0;
+
+ /* Strip trailing newline */
+ if (outbuffer[n-1] == '\n') outbuffer[--n] = 0;
/* Expect incoming */
/* Expect incoming */