SSL IntFlag enums VerifyFlags and Options are not continuous and contain "false" aliases #150577
Closed as not planned
IntFlag enums VerifyFlags and Options are not continuous and contain "false" aliases #150577
I noticed that the
IntFlagenumsVerifyFlagsandOptionsfrom thesslmodule are not continuous and contain aliases to (partially) absent members, i.e. "false" aliases.This gives inconsistencies in flag iteration:
overshooting
VerifyFlagsOptionsfalse aliases
VerifyFlagsOptionsmissing members due to being false aliases
VerifyFlagsand consequently
Optionsand resulting implications analogous to
VerifyFlags.With that,
enum.show_flag_valuesalso cannot really be used anymore.I found these related issues:
The behavior shown above kind of collides with the achievement for simplicity mentioned in #72212 - and also confused me heavily.
@tiran @ethanfurman What do you think?