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>
Thu, 8 Jun 2023 13:33:14 +0000 (15:33 +0200)
commita48d0bdb77eb93f7fba6e055dace125c72755b6a
tree4764e0b35ca3b99f915a70352111b5ad25ce129f
parentb99b89da52df3cdc052d24bce8b863f747a43bab
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>
(cherry picked from commit a0d71934253f599f4ac651b1b3a429901049e802)
package/libs/openssl/Makefile