#include <gnutls_num.h>
#include <gnutls_str.h>
#include <stdarg.h>
+#include <c-ctype.h>
/* These function are like strcat, strcpy. They only
* do bound checking (they shouldn't cause buffer overruns),
size_t certnamesize, const char *hostname)
{
/* find the first different character */
- for (; *certname && *hostname && toupper (*certname) == toupper (*hostname);
+ for (; *certname && *hostname && c_toupper (*certname) == c_toupper (*hostname);
certname++, hostname++, certnamesize--)
;
#include <string.h>
#include <ctype.h>
#include <sys/stat.h>
+#include <c-ctype.h>
#include "opencdk.h"
#include "main.h"
for (t = (byte *) buf, n = buflen, s = (byte *) sub; n; t++, n--)
{
- if (toupper (*t) == toupper (*s))
+ if (c_toupper (*t) == c_toupper (*s))
{
for (buf = t++, buflen = n--, s++;
- n && toupper (*t) == toupper ((byte) * s); t++, s++, n--)
+ n && c_toupper (*t) == c_toupper ((byte) * s); t++, s++, n--)
;
if (!*s)
return buf;