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:
Dan Williams
2009-09-04 09:07:00 -05:00
parent cecf8f64c7
commit e5ed391f28
13 changed files with 2073 additions and 644 deletions

View File

@@ -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)
{