From 117b35db99af4331daad4279eadfb9280e0c1325 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 24 May 2018 11:01:33 +0200 Subject: common: Make case conversion locale independent The tolower()/toupper() functions take into account of the current locale settings, which p11-kit doesn't want. Add replacement functions that work as if they are called under the C locale. --- common/compat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/compat.h') diff --git a/common/compat.h b/common/compat.h index a9d2fe1..96a731d 100644 --- a/common/compat.h +++ b/common/compat.h @@ -340,4 +340,7 @@ int fdwalk (int (* cb) (void *data, int fd), #endif +int p11_ascii_tolower (int c); +int p11_ascii_toupper (int c); + #endif /* __COMPAT_H__ */ -- cgit v1.1