cpp: Add safety checks for key update
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 24 Jul 2018 06:40:28 +0000 (08:40 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 24 Jul 2018 06:40:28 +0000 (08:40 +0200)
commita6e5c8bf18696007c48c6f362aa355020fe82f21
tree1dbe85e013210d0ca0cb48374f4e0463bea86835
parent4d1642b11ea64b8009a8720d9b59e89636d691d2
cpp: Add safety checks for key update

* lang/cpp/src/key.cpp (Key::update): Check that the key is
not NULL.
* lang/cpp/src/verificationresult.cpp (GpgME::Signature::key):
Check for fingerprint.
lang/cpp/src/key.cpp
lang/cpp/src/verificationresult.cpp