mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
Show the insecure algorithms with the postfix (insecure) in the dropdown menu. Since the "insecure" is translateable, put the algorithm NID into the data field of the combo-box entry to reliably find the correct entry by NID instead of text.
31 lines
516 B
C++
31 lines
516 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2007 - 2011 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef __PKCS12_ENC_BOX_H
|
|
#define __PKCS12_ENC_BOX_H
|
|
|
|
#include <QComboBox>
|
|
#include "lib/pki_pkcs12.h"
|
|
|
|
class pkcs12EncBox: public QComboBox
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
int wanted_encAlgo{};
|
|
|
|
public:
|
|
pkcs12EncBox(QWidget *parent);
|
|
const encAlgo current() const;
|
|
void setCurrent(const encAlgo &md);
|
|
void setupEncAlgos(QList<int> nids);
|
|
void setupAllEncAlgos();
|
|
void setDefaultEncAlgo();
|
|
};
|
|
|
|
#endif
|