mirror of
https://github.com/chris2511/xca.git
synced 2026-09-13 18:46:25 +05:00
30 lines
535 B
C++
30 lines
535 B
C++
#include "db_key.h"
|
|
|
|
|
|
db_key::db_key(DbEnv *dbe, string DBfile, string DB, QListBox *l)
|
|
:db_base(dbe, DBfile, DB, l)
|
|
{
|
|
loadContainer();
|
|
updateView();
|
|
}
|
|
|
|
pki_base *db_key::newPKI(){
|
|
return new pki_key("");
|
|
}
|
|
|
|
|
|
QStringList db_key::getPrivateDesc()
|
|
{
|
|
pki_key *pki;
|
|
QStringList x;
|
|
for ( pki = (pki_key *)container.first(); pki != 0; pki = (pki_key *)container.next() ) {
|
|
cerr << pki->getDescription().c_str();
|
|
if (pki->isPrivKey()) {
|
|
x.append(pki->getDescription().c_str());
|
|
cerr << "found " <<endl;
|
|
}
|
|
}
|
|
return x;
|
|
}
|
|
|