libnm-util: allow certificate/key paths
Overload the certificate and key properties to allow paths to the certificates and keys using a special prefix for the property data. Add API to libnm-util for easy certificate path handling, and documentation for NMSetting8021x.
This commit is contained in:
@@ -116,17 +116,6 @@ utils_hexstr2bin (const char *hex, size_t len)
|
||||
|
||||
/* End from hostap */
|
||||
|
||||
char *
|
||||
utils_hash_byte_array (const GByteArray *data)
|
||||
{
|
||||
unsigned char buf[SHA1_MAC_LEN];
|
||||
static const char *key = "0123456789abcdefghijklmnopqrstuvwxyz";
|
||||
|
||||
memset (buf, 0, sizeof (buf));
|
||||
sha1_mac ((const unsigned char *) key, strlen (key), (const u_int8_t *) data->data, data->len, &buf[0]);
|
||||
return utils_bin2hexstr ((const char *) &buf[0], SHA1_MAC_LEN, SHA1_MAC_LEN * 2);
|
||||
}
|
||||
|
||||
char *
|
||||
utils_cert_path (const char *parent, const char *suffix)
|
||||
{
|
||||
|
Reference in New Issue
Block a user