# if GNUTLS_VERSION_NUMBER >= 0x030103
# define HAVE_OCSP
# include <gnutls/ocsp.h>
-# ifndef GNUTLS_NO_EXTENSIONS
-# define GNUTLS_NO_EXTENSIONS 0
-# endif
+# endif
+# ifndef GNUTLS_NO_EXTENSIONS
+# define GNUTLS_NO_EXTENSIONS 0
# endif
# define DH_BITS 768
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 */