agent: Use OCB for key protection with --enable-extended-key-format.
authorWerner Koch <wk@gnupg.org>
Sun, 2 Apr 2017 18:02:55 +0000 (20:02 +0200)
committerWerner Koch <wk@gnupg.org>
Sun, 2 Apr 2017 18:02:55 +0000 (20:02 +0200)
commitd24375271b97e45deaeb1ef0a8434c64066ba2e8
tree610e0d18703b6727935a72afcae6e8785714680b
parent0039d7107bcdfce6f3b02b46ff0495cfba07882a
agent: Use OCB for key protection with --enable-extended-key-format.

* agent/protect.c (PROT_DEFAULT_TO_OCB): Remove macro.
(agent_protect): Make the default protection mode depend on the extend
key format option.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/protect.c
doc/gpg-agent.texi