openssl: fix uci config for built-in engines
authorTianling Shen <cnsztl@immortalwrt.org>
Thu, 1 Jun 2023 07:22:26 +0000 (15:22 +0800)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 3 Jun 2023 19:15:11 +0000 (21:15 +0200)
commita0d71934253f599f4ac651b1b3a429901049e802
tree899527460ccb0f1ffb2699c75d25ac2874aa3f3d
parent1eb02ce3254ef6f115640df8ac470574d6903588
openssl: fix uci config for built-in engines

Built-in engine configs are added in libopenssl-conf/install stage
already, postinst/add_engine_config is just duplicating them, and
due to the lack of `config` header it results a broken uci config:

> uci: Parse error (invalid command) at line 3, byte 0

```
config engine 'devcrypto'
        option enabled '1'
engine 'devcrypto'
        option enabled '1'
        option builtin '1'
```

Add `builtin` option in libopenssl-conf/install stage and remove
duplicate engine configuration in postinst/add_engine_config to
fix this issue.

Fixes: 0b70d55a64c39d ("openssl: make UCI config aware of built-in engines")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
package/libs/openssl/Makefile