This PR removes the use of all anonymous struct fields that were introduced by myself as per my work on splitting up boulder-config (#1962). The root of the bug was related to the loading of the json configuration file into the config struct. The config structs contained several embedded (anonymous) fields. An embedded (anonymous) field in a struct actually results in the flattening of the json structure. This caused json.Unmarshal to look not at the nested level, but at the root level of the json object and hence not find the nested field (i.e. AllowedSigningAlgos). See https://play.golang.org/p/6uVCsEu3Df for a working example. This fixes the reported bug: #2018 |
||
|---|---|---|
| .. | ||
| main.go | ||
| main_test.go | ||