Home GnuPG
Diffusion GnuPG 795965437732

agent: Add some extra robustness to extract_private_key
795965437732Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

agent: Add some extra robustness to extract_private_key

* agent/cvt-openpgp.c (extract_private_key): Add arg "arraysize".
Make sure that R_FLAGS and R_CURVE are set to NULL.

Given that extract_private_key is not file local it is good to have some
extra asserts to protect against future wrong use.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 27 2015, 10:22 AM
Parents
rGf6d3c6e5263d: scd: Fix varargs call for 64-bit arch on ECC keys.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG795965437732: agent: Add some extra robustness to extract_private_key (authored by Werner Koch <wk@gnupg.org>).Jan 28 2015, 9:12 AM