|
|
@ -402,6 +402,10 @@ void UserConfigDialog::downloadPKICertificate() {
|
|
|
|
for (it = m_user.pkiCertificates.begin(); it != m_user.pkiCertificates.end(); ++it) {
|
|
|
|
for (it = m_user.pkiCertificates.begin(); it != m_user.pkiCertificates.end(); ++it) {
|
|
|
|
PKICertificateEntry certificateData = *it;
|
|
|
|
PKICertificateEntry certificateData = *it;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Don't attempt to load empty certificates
|
|
|
|
|
|
|
|
if (certificateData.second.size() < 1)
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
|
|
TQCString ssldata(certificateData.second);
|
|
|
|
TQCString ssldata(certificateData.second);
|
|
|
|
ssldata[certificateData.second.size()] = 0;
|
|
|
|
ssldata[certificateData.second.size()] = 0;
|
|
|
|
ssldata.replace("-----BEGIN CERTIFICATE-----", "");
|
|
|
|
ssldata.replace("-----BEGIN CERTIFICATE-----", "");
|
|
|
@ -444,6 +448,10 @@ void UserConfigDialog::revokePKICertificate() {
|
|
|
|
for (it = m_user.pkiCertificates.begin(); it != m_user.pkiCertificates.end(); ++it) {
|
|
|
|
for (it = m_user.pkiCertificates.begin(); it != m_user.pkiCertificates.end(); ++it) {
|
|
|
|
PKICertificateEntry certificateData = *it;
|
|
|
|
PKICertificateEntry certificateData = *it;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Don't attempt to load empty certificates
|
|
|
|
|
|
|
|
if (certificateData.second.size() < 1)
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
|
|
TQCString ssldata(certificateData.second);
|
|
|
|
TQCString ssldata(certificateData.second);
|
|
|
|
ssldata[certificateData.second.size()] = 0;
|
|
|
|
ssldata[certificateData.second.size()] = 0;
|
|
|
|
ssldata.replace("-----BEGIN CERTIFICATE-----", "");
|
|
|
|
ssldata.replace("-----BEGIN CERTIFICATE-----", "");
|
|
|
|