xca/widgets/CertExtend.h
Christian Hohnstaedt ac371b697a improve date and time input
- Only once set notBefore to "now" when creating Cert-renewal
  or NewCert dialog.

- Apply-time button now always uses the current value from notBefore
  and adds the time-span without resetting notBefore

- Checking "midnight" now immediately modifies the dates.
  Unchecking "midnight" now recovers the old value

- The seconds are always set to 00, since they can't be set via
  the DateTime dialog anyway

- CRL generation now too allows to use midnight and time ranges
  and uses GENERALIZED time if the date is out of range for UTCTIME
  (same logic as for certificates)
2010-07-14 20:54:59 +02:00

31 lines
443 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;
public:
CertExtend(QWidget *parent, pki_x509 *s);
public slots:
void on_applyTime_clicked();
void accept();
};
#endif