summaryrefslogtreecommitdiff
path: root/src/gmcerts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmcerts.c')
-rw-r--r--src/gmcerts.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gmcerts.c b/src/gmcerts.c
index bf0f3924..8577cf2b 100644
--- a/src/gmcerts.c
+++ b/src/gmcerts.c
@@ -201,7 +201,11 @@ void clearUse_GmIdentity(iGmIdentity *d) {
201} 201}
202 202
203const iString *name_GmIdentity(const iGmIdentity *d) { 203const iString *name_GmIdentity(const iGmIdentity *d) {
204 return collect_String(subject_TlsCertificate(d->cert)); 204 iString *name = collect_String(subject_TlsCertificate(d->cert));
205 if (startsWith_String(name, "CN = ")) {
206 remove_Block(&name->chars, 0, 5);
207 }
208 return name;
205} 209}
206 210
207iDefineTypeConstruction(GmIdentity) 211iDefineTypeConstruction(GmIdentity)