Lines 628-636
Link Here
|
628 |
report(stdout, GT_("Unknown Issuer CommonName\n")); |
628 |
report(stdout, GT_("Unknown Issuer CommonName\n")); |
629 |
} |
629 |
} |
630 |
if ((i = X509_NAME_get_text_by_NID(subj, NID_commonName, buf, sizeof(buf))) != -1) { |
630 |
if ((i = X509_NAME_get_text_by_NID(subj, NID_commonName, buf, sizeof(buf))) != -1) { |
631 |
if (outlevel >= O_VERBOSE) |
631 |
if (outlevel >= O_VERBOSE) { |
632 |
report(stdout, GT_("Server CommonName: %s\n"), (tt = sdump(buf, i))); |
632 |
report(stdout, GT_("Server CommonName: %s\n"), (tt = sdump(buf, i))); |
633 |
xfree(tt); |
633 |
xfree(tt); |
|
|
634 |
} |
634 |
if ((size_t)i >= sizeof(buf) - 1) { |
635 |
if ((size_t)i >= sizeof(buf) - 1) { |
635 |
/* Possible truncation. In this case, this is a DNS name, so this |
636 |
/* Possible truncation. In this case, this is a DNS name, so this |
636 |
* is really bad. We do not tolerate this even in the non-strict case. */ |
637 |
* is really bad. We do not tolerate this even in the non-strict case. */ |