[PATCH] USE_OPENSSL and cert (subject/issuer) with umlauts
Hi there, at least with OpenSSL the current code doesn't handle umlauts in certificates (subject/issuer) very well in case of defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE) (startup messages and ConnectionInfo 'J'). Umlauts are displayed somehow raw. Here is how it currently looks like (news.individual.de): | Subject: /C=DE/ST=Berlin/O=Freie Universit\xC3\xA4t Berlin/CN=news.individual.de ^^^^^^^^ | Issuer : /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Organization I'm not sure whether it's worth the effort in this respect, but the attached patch changes the behaviour so that at least with defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE) umlauts are displayed correctly. The whole output also looks a little more elegant. Here is the defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE) case: | Subject: C=DE, ST=Berlin, O=Freie Universität Berlin, CN=news.individual.de | Issuer : C=GB, ST=Greater Manchester, L=Salford, O=Sectigo Limited, CN=Sectigo RSA Organization and here the !(defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE)) case: | Subject: C=DE, ST=Berlin, O=Freie Universit\C3\A4t Berlin, CN=news.individual.de | Issuer : C=GB, ST=Greater Manchester, L=Salford, O=Sectigo Limited, CN=Sectigo RSA Organization As I only have OpenSSL available, I cannot say whether this is the case with the other variants. The patch only affects the OpenSSL case. Dennis
participants (1)
-
Dennis Preiser