NetworkManager/libnm-util/tests
Thomas Haller 2f67105a91 libnm-util: remove assert to nm_utils_ip4_netmask_to_prefix
Commit 240c92ddb5 added an assert
to check that the input netmask is valid. Revert that commit for
the most part, some changes to the test function are not reverted.

We don't want to assert for a valid netmask, because it's
common to read the netmask from (untrusted) user input, so we
don't want to assert against it.

The caller *could* validate the netmask from untrusted sources, but
with the assert in place it cannot validate it in the most obvious way:

    prefix = nm_utils_ip4_netmask_to_prefix (netmask);
    if (netmask != nm_utils_ip4_prefix_to_netmask (prefix))
        goto fail;

Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-03-14 16:55:51 +01:00
..
certs libnm-util: recognize PKCS#8 private keys and check passwords (bgo #649326) 2011-05-13 14:22:06 -05:00
Makefile.am libnm-util, libnm-glib: add versioned deprecation/availability macros 2014-02-13 11:24:37 -05:00
test-crypto.c all: remove pointless NULL checks 2013-02-13 13:38:13 -05:00
test-general.c libnm-util: remove assert to nm_utils_ip4_netmask_to_prefix 2014-03-14 16:55:51 +01:00
test-secrets.c test: remove deprecated 'security' property from tests 2013-09-02 09:46:31 +02:00
test-setting-8021x.c libnm-util: remove unused D-Bus dbus_g_bus_get() call from test-setting-8021x.c 2011-06-14 16:14:40 +02:00
test-setting-dcb.c libnm-util: add Data Center Bridging (DCB) setting 2013-10-31 13:28:42 -05:00
test-settings-defaults.c all: use G_VALUE_INIT to initialize GValue variables 2013-03-25 08:41:18 +01:00