xca/widgets/hashBox.h
Christian Hohnstaedt 9da73073c8 Create CRL by providing a crljob, describing the parameters
The GUI will prepare such a job and the cmdline can do so, too.
2020-03-11 07:19:56 +01:00

40 lines
807 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2007 - 2011 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __HASH_BOX_H
#define __HASH_BOX_H
#include <QComboBox>
#include <openssl/evp.h>
class hashBox: public QComboBox
{
Q_OBJECT
private:
static int default_md;
QString wanted_md;
int backup;
int key_type;
public:
hashBox(QWidget *parent);
void setKeyType(int type);
const EVP_MD *currentHash() const;
QString currentHashName() const;
int currentHashIdx() const;
bool isInsecure() const;
void setCurrentMD(const EVP_MD *md);
void setDefaultHash();
void setupHashes(QList<int> nids);
void setupAllHashes();
void setCurrentString(QString md);
static void setDefault(QString def);
static QString getDefault();
static const EVP_MD *getDefaultMD();
};
#endif