diff options
author | Jack Lloyd <[email protected]> | 2016-10-24 17:43:14 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-10-24 17:43:14 -0400 |
commit | 46d6cec80542ba9c5150a379043fbd01c4563bfa (patch) | |
tree | 86ee11e3d8e66eb12bfa3fc4172755e8be3f8b02 /src/lib/prov/pkcs11 | |
parent | 10037fe08aafc88f332aaf1f702c5ab6405067ef (diff) |
Initialize member variable in PKCS11_EC_PrivateKey
One of the constructors initialized the member, the others did not.
Found by Coverity scanner.
Diffstat (limited to 'src/lib/prov/pkcs11')
-rw-r--r-- | src/lib/prov/pkcs11/p11_ecc_key.cpp | 2 | ||||
-rw-r--r-- | src/lib/prov/pkcs11/p11_ecc_key.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/prov/pkcs11/p11_ecc_key.cpp b/src/lib/prov/pkcs11/p11_ecc_key.cpp index 0c3e879d9..6ab713d3a 100644 --- a/src/lib/prov/pkcs11/p11_ecc_key.cpp +++ b/src/lib/prov/pkcs11/p11_ecc_key.cpp @@ -72,7 +72,7 @@ EC_PrivateKeyImportProperties::EC_PrivateKeyImportProperties(const std::vector<b } PKCS11_EC_PrivateKey::PKCS11_EC_PrivateKey(Session& session, ObjectHandle handle) - : Object(session, handle), m_domain_params(), m_public_key(), m_point_encoding(PublicPointEncoding::Der) + : Object(session, handle), m_domain_params(), m_public_key() { secure_vector<byte> ec_parameters = get_attribute_value(AttributeType::EcParams); m_domain_params = EC_Group(unlock(ec_parameters)); diff --git a/src/lib/prov/pkcs11/p11_ecc_key.h b/src/lib/prov/pkcs11/p11_ecc_key.h index 8b2ede566..151feed37 100644 --- a/src/lib/prov/pkcs11/p11_ecc_key.h +++ b/src/lib/prov/pkcs11/p11_ecc_key.h @@ -216,7 +216,7 @@ class BOTAN_DLL PKCS11_EC_PrivateKey : public virtual Private_Key, private: EC_Group m_domain_params; PointGFp m_public_key; - PublicPointEncoding m_point_encoding; + PublicPointEncoding m_point_encoding = PublicPointEncoding::Der; }; } |