QSslCertificate: Add property names to debug operator<<
When qDebugging a QSslCertificate, its properties are printed without property names. That makes it difficult to identify which output string correlates to which data element. This patch adds the property name to each output field. Pick-to: 6.5 Change-Id: Icdc54520e048f5fa03e8d9ed0ab2a42371e5a00d Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
f1dc42e19e
commit
b932f798a2
@ -974,15 +974,15 @@ QDebug operator<<(QDebug debug, const QSslCertificate &certificate)
|
||||
QDebugStateSaver saver(debug);
|
||||
debug.resetFormat().nospace();
|
||||
debug << "QSslCertificate("
|
||||
<< certificate.version()
|
||||
<< ", " << certificate.serialNumber()
|
||||
<< ", " << certificate.digest().toBase64()
|
||||
<< ", " << certificate.issuerDisplayName()
|
||||
<< ", " << certificate.subjectDisplayName()
|
||||
<< ", " << certificate.subjectAlternativeNames()
|
||||
<< "Version=" << certificate.version()
|
||||
<< ", SerialNumber=" << certificate.serialNumber()
|
||||
<< ", Digest=" << certificate.digest().toBase64()
|
||||
<< ", Issuer=" << certificate.issuerDisplayName()
|
||||
<< ", Subject=" << certificate.subjectDisplayName()
|
||||
<< ", AlternativeSubjectNames=" << certificate.subjectAlternativeNames()
|
||||
#if QT_CONFIG(datestring)
|
||||
<< ", " << certificate.effectiveDate()
|
||||
<< ", " << certificate.expiryDate()
|
||||
<< ", EffectiveDate=" << certificate.effectiveDate()
|
||||
<< ", ExpiryDate=" << certificate.expiryDate()
|
||||
#endif
|
||||
<< ')';
|
||||
return debug;
|
||||
|
Loading…
Reference in New Issue
Block a user