openpgp: Fix Encryptor's lifetime parameter.
-
Encryptor
uses a single lifetime for two fields, which is too restrictive in some situations.-
To avoid breaking the API, introduce
Encryptor2
, which is justEncryptor
renamed, and with an added lifetime parameter, and makeEncryptor
a thin wrapper aroundEncryptor2
. -
See #1028 (closed).
-