WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trust store: Overwrite conflicting ssl options and ensure cacerts set
`lists:keymerge/3` was used to merge required options into user
provided ssl options, which assumes the input lists are sorted. No
matter if the intention was to preserve user provided options or
overwrite them in case of conflict, without sorting, the outcome was
unpredictable. It is also somewhat surprising to those who are used to
the behaviour of `proplists:get_value` that the ssl app (at least
since OTP 26) takes the last value not the first when same key with
multiple values are provided.
This commit makes sure the input lists are ordered. Also changes the
behaviour of the plugin that all keys used by the plugin overwrite
user provided values (`fail_if_no_peer_cert`, `partial_chain`,
`verify`, `verify_fun`)
Also if the user did not provide a `cacerts` or `cacertfile` option,
an empty `cacerts` list is added, as ssl config validation requires
it in case `verify_peer` is enabled.
(cherry picked from commit 543720f)
0 commit comments