allow using certs of other providers (quick hack, not complete)

svn path=/trunk/kdesupport/qca/; revision=677773
This commit is contained in:
Justin Karneges 2007-06-19 21:35:27 +00:00
parent 51935fd1dc
commit 07563f74df

View File

@ -5800,6 +5800,18 @@ public:
key.change(pk);
}
// allow different cert provider. this is just a
// quick hack, enough to please qca-test
if(!cert.context()->sameProvider(this))
{
//fprintf(stderr, "experimental: cert supplied by a different provider\n");
cert = Certificate::fromDER(cert.toDER());
if(cert.isNull() || !cert.context()->sameProvider(this))
{
//fprintf(stderr, "error converting cert\n");
}
}
//MyCertContext *cc = static_cast<MyCertContext *>(cert.context());
//MyPKeyContext *kc = static_cast<MyPKeyContext *>(key.context());