diff options
Diffstat (limited to 'g10/pkclist.c')
-rw-r--r-- | g10/pkclist.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/g10/pkclist.c b/g10/pkclist.c index b85efa4cd..6ec5537f5 100644 --- a/g10/pkclist.c +++ b/g10/pkclist.c @@ -1652,8 +1652,9 @@ select_mdc_from_pklist (PK_LIST pk_list) /* Select the AEAD flag from the pk_list. We can only use AEAD if all - * recipients support this feature. Returns true if AEAD can be used. */ -int + * recipients support this feature. Returns the AEAD to be used or 0 + * if AEAD shall not be used. */ +aead_algo_t select_aead_from_pklist (PK_LIST pk_list) { pk_list_t pkr; @@ -1672,7 +1673,7 @@ select_aead_from_pklist (PK_LIST pk_list) return 0; /* At least one recipient does not support it. */ } - return 1; /* Can be used. */ + return default_aead_algo (); /* Yes, AEAD can be used. */ } |