* pkclist.c (select_algo_from_prefs): Make sure the scores can't
authorDavid Shaw <dshaw@jabberwocky.com>
Fri, 29 Oct 2010 19:54:56 +0000 (19:54 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Fri, 29 Oct 2010 19:54:56 +0000 (19:54 +0000)
commit2bd66b59a29a1d81b2c7a431160b68f0010417a4
tree21d3c5b44b0e55a34157216611f854e84489469f
parent734308680842097ec3ba456689714c3d3cff93f3
* 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