File: v3ext.h

package info (click to toggle)
xca 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,328 kB
  • sloc: cpp: 30,584; sh: 341; xml: 74; makefile: 56; python: 34
file content (49 lines) | stat: -rw-r--r-- 942 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* 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