SSL certificate printing: increase max certificate size

apparently there are really big certificates around, so 4k might not
always be enough.

Change-Id: I84df82d117469a14b4c6db81e0ceecc1a8ba47b3
Reviewed-on: http://codereview.qt.nokia.com/554
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
This commit is contained in:
Peter Hartmann 2011-06-20 18:23:25 +02:00 committed by Qt by Nokia
parent 6ebb60158d
commit 0da3d7d5d3

View File

@ -692,8 +692,8 @@ QByteArray QSslCertificatePrivate::text_from_X509(X509 *x509)
q_X509_print(bio, x509);
QVarLengthArray<char, 4096> data;
int count = q_BIO_read(bio, data.data(), 4096);
QVarLengthArray<char, 16384> data;
int count = q_BIO_read(bio, data.data(), 16384);
if ( count > 0 ) {
result = QByteArray( data.data(), count );
}