2006-01-23 Dan Williams <dcbw@redhat.com>
* libnm-util/cipher-private.h libnm-util/cipher.c libnm-util/cipher.h - (cipher_bin2hexstr, cipher_hexstr2bin): make public git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1384 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2006-01-23 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* libnm-util/cipher-private.h
|
||||
libnm-util/cipher.c
|
||||
libnm-util/cipher.h
|
||||
- (cipher_bin2hexstr, cipher_hexstr2bin): make public
|
||||
|
||||
2006-01-23 Robert Love <rml@novell.com>
|
||||
|
||||
Patch by Timo Hoenig <thoenig@suse.de>:
|
||||
|
@@ -55,11 +55,4 @@ int cipher_default_validate_func (IEEE_802_11_Cipher *cipher,
|
||||
const char *ssid,
|
||||
const char *input);
|
||||
|
||||
char * cipher_bin2hexstr (const char *bytes,
|
||||
int len,
|
||||
int final_len);
|
||||
|
||||
char * cipher_hexstr2bin (const char *hex,
|
||||
size_t len);
|
||||
|
||||
#endif /* CIPHER_PRIVATE_H */
|
||||
|
@@ -151,7 +151,8 @@ cipher_bin2hexstr (const char *bytes,
|
||||
result[2*i+1] = hex_digits[bytes[i] & 0xf];
|
||||
}
|
||||
/* Cut converted key off at the correct length for this cipher type */
|
||||
result[final_len] = '\0';
|
||||
if (final_len > -1)
|
||||
result[final_len] = '\0';
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@@ -36,6 +36,10 @@ int ieee_802_11_cipher_get_input_max (IEEE_802_11_Cipher *cipher);
|
||||
char * ieee_802_11_cipher_hash (IEEE_802_11_Cipher *cipher, const char *ssid, const char *input);
|
||||
int ieee_802_11_cipher_validate (IEEE_802_11_Cipher *cipher, const char *ssid, const char *input);
|
||||
|
||||
char * cipher_bin2hexstr (const char *bytes, int len, int final_len);
|
||||
char * cipher_hexstr2bin(const char *hex, size_t len);
|
||||
|
||||
|
||||
/* Private API members (not part of the public API) */
|
||||
int ieee_802_11_cipher_refcount (IEEE_802_11_Cipher *cipher);
|
||||
|
||||
|
Reference in New Issue
Block a user