• Thomas Haller's avatar
    shared: add nm-secret-utils.h helper · b2325087
    Thomas Haller authored
    We already had nm_free_secret() to clear the secret out
    of a NUL terminated string. That works well for secrets
    which are strings, it can be used with a cleanup attribute
    (nm_auto_free_secret) and as a cleanup function for a
    However, it does not work for secrets which are binary.
    For those, we must also track the length of the allocated
    data and clear it.
    Add two new structs NMSecretPtr and NMSecretBuf to help
    with that.
Makefile.am 170 KB