mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
37 lines
699 B
C++
37 lines
699 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 <QtGui/QComboBox>
|
|
#include <openssl/evp.h>
|
|
|
|
class hashBox: public QComboBox
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
static QString default_md;
|
|
QString wanted_md;
|
|
int backup;
|
|
int key_type;
|
|
public:
|
|
hashBox(QWidget *parent);
|
|
void setKeyType(int type);
|
|
const EVP_MD *currentHash();
|
|
QString currentHashName();
|
|
void setCurrentAsDefault();
|
|
void setDefaultHash();
|
|
void setupHashes(QList<int> nids);
|
|
void setupAllHashes();
|
|
void setCurrentString(QString md);
|
|
static void setDefault(QString def);
|
|
static void resetDefault();
|
|
};
|
|
|
|
#endif
|