Warn about incorrect string encoding in dcpkdm.
authorCarl Hetherington <cth@carlh.net>
Thu, 14 Mar 2019 19:38:48 +0000 (19:38 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 14 Mar 2019 19:38:48 +0000 (19:38 +0000)
tools/dcpkdm.cc

index 6ffabfe73c7159eb77c0f4df50e708d7ed59c492..7104b547d45cb7ca1932361859784d7559ff0378 100644 (file)
@@ -115,6 +115,9 @@ main (int argc, char* argv[])
                cout << "\t\tSubject organizational unit name: " << i.subject_organizational_unit_name() << "\n";
                cout << "\t\tNot before: " << tm_to_string(i.not_before()) << "\n";
                cout << "\t\tNot after:  " << tm_to_string(i.not_after()) << "\n";
+               if (i.has_utf8_strings()) {
+                       cout << "\t\tUSES INCORRECT (UTF8) STRING ENCODING\n";
+               }
        }
 
        if (private_key_file) {