xca/lib/db_token.h
Christian Hohnstaedt 4b3ee2c705 Switch database format to SQL(ite)
This is a large squash of many small commits.

Allow porting data from the legacy format to SQL.
Store Binaries base64 encoded and use db->transaction
Update password hash to be 8000 x SHA512 with 8 byte Salt
Add revocations table and fixup CRL generation
Add comment and insertion date columns

Fix column saving, remove trust, add XcaDialog
Allow changing the internal name and comment in Cert/Req details view
Extend Comment functionality, Replace About.ui by XcaDialog.ui
2018-03-05 07:42:36 +01:00

35 lines
521 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2010 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __DB_TOKEN_H
#define __DB_TOKEN_H
#include <QObject>
#include <QPixmap>
#include <QEvent>
#include "pkcs11_lib.h"
#include "db_base.h"
class db_token: public db_base
{
Q_OBJECT
private:
slotid slot;
public:
db_token(MainWindow *mw);
bool setData(const QModelIndex &index,
const QVariant &value, int role);
void setSlot(slotid s)
{
slot = s;
}
void saveHeaderState();
};
#endif