Home GnuPG
Diffusion GpgOL 8576131bc84d

Cppinize keycache a bit more

Description

Cppinize keycache a bit more

* src/keycache.cpp (setSmimeKeySecret, setSmimeKey, setPgpKey),
(setPgpKeySecret): Use std::string.
(do_locate, locate_secret): Smart pointer for ctx.
std::string for addr.
* src/keycache.h: Update accordingly.

This avoids free / delete errors and here also reduces
std::string allocations.

Details

Provenance
aheineckeAuthored on Jun 19 2018, 3:36 PM
Parents
rO3ba39a0f4429: Fix crash when adding attachment without fileext
Branches
Unknown
Tags
Unknown