|
|
@ -696,6 +696,7 @@ public:
|
|
|
|
Cert::Cert()
|
|
|
|
Cert::Cert()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
d = new Private;
|
|
|
|
d = new Private;
|
|
|
|
|
|
|
|
// crash because this is returning 0
|
|
|
|
d->c = (TQCA_CertContext *)getContext(CAP_X509);
|
|
|
|
d->c = (TQCA_CertContext *)getContext(CAP_X509);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -708,7 +709,10 @@ Cert::Cert(const Cert &from)
|
|
|
|
Cert & Cert::operator=(const Cert &from)
|
|
|
|
Cert & Cert::operator=(const Cert &from)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
delete d->c;
|
|
|
|
delete d->c;
|
|
|
|
d->c = from.d->c->clone();
|
|
|
|
if ( from.d->c )
|
|
|
|
|
|
|
|
d->c = from.d->c->clone();
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
d->c = 0;
|
|
|
|
return *this;
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -837,6 +841,7 @@ public:
|
|
|
|
to_net.resize(0);
|
|
|
|
to_net.resize(0);
|
|
|
|
host = "";
|
|
|
|
host = "";
|
|
|
|
hostMismatch = false;
|
|
|
|
hostMismatch = false;
|
|
|
|
|
|
|
|
// this causes the crash, because the Cert ctor is setting a null context
|
|
|
|
cert = Cert();
|
|
|
|
cert = Cert();
|
|
|
|
bytesEncoded = 0;
|
|
|
|
bytesEncoded = 0;
|
|
|
|
tryMore = false;
|
|
|
|
tryMore = false;
|
|
|
|