mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
become more userfriendly: - by indicating the validity with an appropriate icon in front of AIA, SAN IAN and CDP. - by checking the validity before creating the real certificate. - by improving the edit button, to automatically add an "URI" as type, if the type is missing, or is for example "http"
45 lines
856 B
C++
45 lines
856 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2001 - 2009 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef __V3EXT_H
|
|
#define __V3EXT_H
|
|
|
|
#include "ui_v3ext.h"
|
|
#include "lib/pki_base.h"
|
|
#include <QtGui/QLineEdit>
|
|
#include <QtCore/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:
|
|
QLineEdit *le;
|
|
int nid;
|
|
X509V3_CTX *ext_ctx;
|
|
bool __validate(bool showSuccess);
|
|
QStringList keys;
|
|
public:
|
|
v3ext( QWidget *parent);
|
|
void addItem(QString list);
|
|
void addEntry(QString list);
|
|
QString toString();
|
|
void addInfo(QLineEdit *myle, const QStringList &sl, int n,
|
|
X509V3_CTX *ctx);
|
|
|
|
public slots:
|
|
void on_apply_clicked();
|
|
void on_validate_clicked();
|
|
void setupLineEdit(const QString &s, QLineEdit *l);
|
|
};
|
|
|
|
#endif
|