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. --- trust/extract-openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trust/extract-openssl.c') diff --git a/trust/extract-openssl.c b/trust/extract-openssl.c index 5f72076..0a56d3f 100644 --- a/trust/extract-openssl.c +++ b/trust/extract-openssl.c @@ -395,7 +395,7 @@ p11_openssl_canon_string (char *str, /* If there has been a space, then add one */ if (sp) *out++ = ' '; - *out++ = (*in & 0x80) ? *in : tolower (*in); + *out++ = (*in & 0x80) ? *in : p11_ascii_tolower (*in); sp = false; nsp = true; /* If there has been a non-space, then note we should get one */ -- cgit v1.1