#3899: mutt_ssl's interactive_check_cert() has several issues
-----------------------+----------------------
Reporter: kevin8t8 | Owner: mutt-dev
Type: defect | Status: closed
Priority: major | Milestone:
Component: crypto | Version:
Resolution: fixed | Keywords:
-----------------------+----------------------
Comment (by vinc17):
Replying to [comment:10 derekmartin]:
> Better would be something like:
>
> {{{
> #define CERT_CHECK_PARTS 7
> typedef int cert_check_parts[CERT_CHECK_PARTS];
> [...]
> const cert_check_parts part = { ... };
> [...]
> for (i = 0; i < CERT_CHECK_PARTS; ++i) ...
> }}}
That would be OK, but the code needs to check that the initializer has
enough elements, as the C standard allows you to give fewer elements than
the real size (the other ones are initialized to 0).
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3899#comment:17>
Mutt <http://www.mutt.org/>
The Mutt mail user agent