mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-27 20:14:32 +00:00
allow using certs of other providers (quick hack, not complete)
svn path=/trunk/kdesupport/qca/; revision=677773
This commit is contained in:
parent
51935fd1dc
commit
07563f74df
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user