xca/widgets/pkcs12EncBox.h
Christian Hohnstaedt e72ffb1445 Extend #383: tag insecure PFX/PKCS#12 algorithms
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.
2024-03-10 18:53:52 +01:00

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