xca/lib/pki_temp.h
Christian 8283d8e7b9 replace copyright notice in source files
(copyright and licence itself remain unchanged)
fix configure to set Qt include dir
code justifying
2007-04-12 12:25:28 +02:00

50 lines
1.2 KiB
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2007 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef PKI_TEMP_H
#define PKI_TEMP_H
#include "pki_base.h"
#include "x509name.h"
#include "asn1time.h"
class pki_temp: public pki_base
{
protected:
int version;
int dataSize();
public:
static QPixmap *icon;
x509name xname;
QString subAltName, issAltName, crlDist, authInfAcc, certPol;
QString nsComment, nsBaseUrl, nsRevocationUrl, nsCARevocationUrl,
nsRenewalUrl, nsCaPolicyUrl, nsSslServerName, destination;
bool bcCrit, keyUseCrit, eKeyUseCrit, subKey, authKey, validMidn;
int nsCertType, pathLen, keyUse, eKeyUse, ca;
int validN, validM;
// methods
pki_temp(const pki_temp *pk);
pki_temp(const QString d);
void loadTemp(const QString fname);
void writeDefault(const QString fname);
/* destructor */
~pki_temp();
void fromData(const unsigned char *p, int size, int version);
void fromData(const unsigned char *p, db_header_t *head );
void oldFromData(unsigned char *p, int size);
unsigned char *toData(int *size);
bool compare(pki_base *ref);
void writeTemp(QString fname);
QVariant column_data(int col);
QVariant getIcon();
};
#endif