This commit fixes '-lssl' and '-lmbedtls' being linked even when they
haven't been selected by --enable-libmbedtls or --enable-libopenssl
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
This option allows selecting between a build with IOPSYS WRT features,
like the "router.*" ubus objects and a generic OpenWrt.
When GENERIC_OPENWRT is defined, only features that are available on a
generic openwrt build should be used.
This option is disabled by default.
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
- use libubus instead of fork and exec ubus program
- move redundant code to static functions
- don't export ubus_ctx. It's only used in dmubus.c
- mark static gobals static
- remove unecessary json to blobmsg conversions/allocations when preparing parameters for ubus_invoke
- fix memleaks on not freeing ubus_ctx from ubus_connect
- fix invoking requests on random stack value id when ubus_lookup_id failed
- don't connect/disconnect on every request
- don't reallocate blob_buf on every request
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>