xca/widgets/CertExtend.h
Christian Hohnstaedt 70d217b354 Close #641: Keep serial number & revoke old certificate
should not be used at the same time. Actually "Keep serial number"
should generally be used with care.

When checking "Keep serial number", "Revoke old certificate" is disabled
and unchecked and "Replace old certificate" is disabled and checked.
2025-03-28 11:51:51 +01:00

34 lines
521 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2010 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __CERTEXTEND_H
#define __CERTEXTEND_H
#include "ui_CertExtend.h"
#include "lib/pki_x509.h"
class pki_key;
class CertExtend: public QDialog, public Ui::CertExtend
{
Q_OBJECT
pki_x509 *signer{};
bool old_replace{};
bool old_revoke{};
public:
CertExtend(QWidget *parent, pki_x509 *s);
public slots:
void on_applyTime_clicked();
void on_keepSerial_toggled(bool);
void accept();
};
#endif