Skip to content

working "include" directive #26474

Description

@petrovr

Directive .include is added long time but does not work.
For instance if directive is uncommented user should be able to add or remove an provider just by adding/removing configuration file.

Sample with FIPS provider is good stating point.


Long time ago I did test with multiple engines and result is that .include directive could in default section but in following context:

openssl_conf = config

.include .../openssl.d/

[ config ]

Then included engine configuration must match one and the same structure:

[ config ]
engines = section_engine

[ section_engine ]
engine1 = engine_foo
...

If I remember well engines must point to one and the same section name otherwise only first processed is loaded.

Additional test to indicated that included configuration does not break main was to output oids from main configuration.


Off topic. Looks like configuration parsers(modules) keep state when included file ends. Perhaps they should reset internal state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlog fixThe issue was closed as part of the backlog reduction initiative.help wantedtriaged: featureThe issue/pr requests/adds a feature

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions