mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
When XCA started in 2002, there were no C++ initializers. Drop explicit initializers from the constructors. - Fix indentations of section declarators. - Replace NULL by nullptr when feasible. - Sort private section: properties first, then methods.
50 lines
942 B
C++
50 lines
942 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2005 - 2014 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef __V3EXT_H
|
|
#define __V3EXT_H
|
|
|
|
#include "ui_v3ext.h"
|
|
#include "lib/pki_base.h"
|
|
#include <QLineEdit>
|
|
#include <QStringList>
|
|
#include <openssl/x509v3.h>
|
|
#include "widgets/kvView.h"
|
|
|
|
class pki_x509;
|
|
class pki_key;
|
|
|
|
class v3ext: public QDialog, public Ui::v3ext
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
int nid{};
|
|
QLineEdit *le{};
|
|
X509V3_CTX *ext_ctx{};
|
|
QStringList keys{};
|
|
QString prefix{};
|
|
bool __validate(bool showSuccess);
|
|
|
|
public:
|
|
v3ext( QWidget *parent);
|
|
void addItem(const QString &list);
|
|
void addEntry(const QString &list);
|
|
QString toString();
|
|
void addInfo(QLineEdit *myle, const QStringList &sl, int n,
|
|
X509V3_CTX *ctx);
|
|
void setPrefix(const QString &p) {
|
|
prefix = p;
|
|
}
|
|
|
|
public slots:
|
|
void on_apply_clicked();
|
|
void on_validate_clicked();
|
|
void setupLineEdit(const QString &s, QLineEdit *l);
|
|
};
|
|
|
|
#endif
|