Commit b1529a3a authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Add default c'tor for KeyParameters

This allows instantiation of KeyParameters without explicit protocol.

GnuPG-bug-id: 5832
parent 7319e765
......@@ -73,6 +73,11 @@ public:
}
};
KeyParameters::KeyParameters()
: KeyParameters{NoProtocol}
{
}
KeyParameters::KeyParameters(Protocol protocol)
: d{new Private{protocol}}
{
......
......@@ -25,10 +25,12 @@ class KeyParameters
{
public:
enum Protocol {
NoProtocol,
OpenPGP,
CMS,
};
KeyParameters();
explicit KeyParameters(Protocol protocol);
~KeyParameters();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment