Skip to content

Commit f9ff850

Browse files
committed
Move DSAKeyParams constructor to header for better clarity.
1 parent fa564e5 commit f9ff850

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/lib/key_material.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,6 @@ KeyParams::create(pgp_pubkey_alg_t alg)
191191
}
192192
}
193193

194-
DSAKeyParams::DSAKeyParams() : BitsKeyParams(DSA_DEFAULT_P_BITLEN), qbits_(0)
195-
{
196-
}
197-
198194
void
199195
DSAKeyParams::check_defaults() noexcept
200196
{

src/lib/key_material.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class DSAKeyParams : public BitsKeyParams {
8484
size_t qbits_;
8585

8686
public:
87-
DSAKeyParams();
87+
DSAKeyParams() : BitsKeyParams(DSA_DEFAULT_P_BITLEN), qbits_(0){};
8888

8989
size_t
9090
qbits() const noexcept

0 commit comments

Comments
 (0)