Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-03-17 22:46:30 +0300
committerRobert Adam <dev@robert-adam.de>2021-03-17 22:46:30 +0300
commitdd50b01ff30b6257690458eb30cd99b384e60f58 (patch)
tree44cf3ebec2ee1303df2dabfd5335f2f95c7c93a5 /src
parenta188c078eb948a30accb106a5d8737e89b064b93 (diff)
FIX(client): Use Utf8 for name field in certificat
Otherwise names using non-ASCII characters won't be handled properly. Fixes #4871 Co-Authored-By: Davide Beatrici <git@davidebeatrici.dev>
Diffstat (limited to 'src')
-rw-r--r--src/SelfSignedCertificate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SelfSignedCertificate.cpp b/src/SelfSignedCertificate.cpp
index 85640aa32..a77e5fad9 100644
--- a/src/SelfSignedCertificate.cpp
+++ b/src/SelfSignedCertificate.cpp
@@ -141,7 +141,7 @@ bool SelfSignedCertificate::generate(CertificateType certificateType, QString cl
}
}
- if (X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC,
+ if (X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_UTF8,
reinterpret_cast< unsigned char * >(commonName.toUtf8().data()), -1, -1, 0)
== 0) {
ok = false;