mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
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
49 lines
896 B
C++
49 lines
896 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2015 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef __CERTTREEVIEW_H
|
|
#define __CERTTREEVIEW_H
|
|
|
|
#include "X509SuperTreeView.h"
|
|
#include "lib/db_x509.h"
|
|
|
|
class CertTreeView: public X509SuperTreeView
|
|
{
|
|
Q_OBJECT
|
|
db_x509 *certs;
|
|
|
|
public:
|
|
CertTreeView(QWidget *parent) : X509SuperTreeView(parent)
|
|
{
|
|
certs = NULL;
|
|
}
|
|
void fillContextMenu(QMenu *menu, QMenu *subExport,
|
|
const QModelIndex &index, QModelIndexList indexes);
|
|
void setModel(db_x509 *model=NULL)
|
|
{
|
|
certs = model;
|
|
X509SuperTreeView::setModel(model);
|
|
}
|
|
|
|
public slots:
|
|
void changeView();
|
|
void toRequest();
|
|
void toCertificate();
|
|
void toToken();
|
|
void toOtherToken();
|
|
void genCrl();
|
|
void loadPKCS7();
|
|
void loadPKCS12();
|
|
void deleteFromToken();
|
|
void manageRevocations();
|
|
void certRenewal();
|
|
void caProperties();
|
|
void revoke();
|
|
void unRevoke();
|
|
};
|
|
#endif
|