mirror of
https://github.com/chris2511/xca.git
synced 2026-09-13 18:46:25 +05:00
40 lines
807 B
C++
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
|