Fix bug in strncpy() use of sk_ASN1_UTF8STRING2text() in asn1_lib.c
[openssl.git] / crypto / ctype.c
index e7aa606827b1d4b0c5606ea729344c59aa720b52..dbd7891399ad59e0cd6f50cea921785e73189507 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <string.h>
 #include <stdio.h>
-#include "internal/ctype.h"
+#include "crypto/ctype.h"
 #include "openssl/ebcdic.h"
 
 /*
@@ -272,3 +272,9 @@ int ossl_toupper(int c)
 {
     return ossl_islower(c) ? c ^ case_change : c;
 }
+
+int ascii_isdigit(const char inchar) {
+    if (inchar > 0x2F && inchar < 0x3A)
+        return 1;
+    return 0;
+}