mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix one character truncation of certificate name/issuer in debug output
This commit is contained in:
parent
326dc210a4
commit
713c7c0f7e
1 changed files with 4 additions and 4 deletions
|
@ -582,15 +582,15 @@ static NSMutableDictionary *certificateListCache = nil;
|
|||
[str appendFormat: _(@"- Certificate version: #%d\n"),
|
||||
gnutls_x509_crt_get_version(cert)];
|
||||
|
||||
dn_size = sizeof(dn);
|
||||
dn_size = sizeof(dn) - 1;
|
||||
gnutls_x509_crt_get_dn(cert, dn, &dn_size);
|
||||
dn[dn_size - 1] = '\0';
|
||||
dn[dn_size] = '\0';
|
||||
[str appendFormat: @"- Certificate DN: %@\n",
|
||||
[NSString stringWithUTF8String: dn]];
|
||||
|
||||
dn_size = sizeof(dn);
|
||||
dn_size = sizeof(dn) - 1;
|
||||
gnutls_x509_crt_get_issuer_dn(cert, dn, &dn_size);
|
||||
dn[dn_size - 1] = '\0';
|
||||
dn[dn_size] = '\0';
|
||||
[str appendFormat: _(@"- Certificate Issuer's DN: %@\n"),
|
||||
[NSString stringWithUTF8String: dn]];
|
||||
|
||||
|
|
Loading…
Reference in a new issue