* pkclist.c (select_algo_from_prefs): Make sure the scores can't
authorDavid Shaw <dshaw@jabberwocky.com>
Fri, 29 Oct 2010 19:49:54 +0000 (19:49 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Fri, 29 Oct 2010 19:49:54 +0000 (19:49 +0000)
commitb4da5a415008e8691a000f501fd575482175101b
tree8c42f87e1b82496b311f1b453497198dc982b417
parentb0b46f46cffcef108562c3a77087640c3d899784
* pkclist.c (select_algo_from_prefs): Make sure the scores can't
overflow when picking an algorithm (not a security issue since we
can't pick something not present in all preference lists, but we might
pick something that isn't scored first choice).

* pkclist.c (select_algo_from_prefs): Slightly improve the handling of
MD5 in preference lists.  Instead of replacing MD5 with SHA-1, just
remove MD5 from the list altogether, and let the next-highest ranked
algorithm be chosen.
g10/ChangeLog
g10/pkclist.c