Commit 3c23d9c6 authored by Colin Walters's avatar Colin Walters
Browse files

2004-11-01 Colin Walters <walters@verbum.org>

	* src/NetworkManagerWireless.h, src/NetworkManagerWireless.c
	(nm_wireless_128bit_key_from_passphrase): Add const.

	* src/NetworkManagerAP.h, src/NetworkManagerAP.c
	(nm_ap_set_enc_key_source): Add const.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@287 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent 5057d17d
2004-11-01 Colin Walters <walters@verbum.org>
* src/NetworkManagerWireless.h, src/NetworkManagerWireless.c
(nm_wireless_128bit_key_from_passphrase): Add const.
* src/NetworkManagerAP.h, src/NetworkManagerAP.c
(nm_ap_set_enc_key_source): Add const.
2004-11-01 Colin Walters <walters@verbum.org> 2004-11-01 Colin Walters <walters@verbum.org>
* .cvsignore: Update. * .cvsignore: Update.
......
...@@ -198,7 +198,7 @@ char * nm_ap_get_enc_key_source (NMAccessPoint *ap) ...@@ -198,7 +198,7 @@ char * nm_ap_get_enc_key_source (NMAccessPoint *ap)
return (ap->enc_key); return (ap->enc_key);
} }
void nm_ap_set_enc_key_source (NMAccessPoint *ap, char * key, NMEncKeyType method) void nm_ap_set_enc_key_source (NMAccessPoint *ap, const char * key, NMEncKeyType method)
{ {
g_return_if_fail (ap != NULL); g_return_if_fail (ap != NULL);
......
...@@ -42,7 +42,7 @@ void nm_ap_set_essid (NMAccessPoint *ap, const char *essid); ...@@ -42,7 +42,7 @@ void nm_ap_set_essid (NMAccessPoint *ap, const char *essid);
char * nm_ap_get_enc_key_source (NMAccessPoint *ap); char * nm_ap_get_enc_key_source (NMAccessPoint *ap);
char * nm_ap_get_enc_key_hashed (NMAccessPoint *ap); char * nm_ap_get_enc_key_hashed (NMAccessPoint *ap);
void nm_ap_set_enc_key_source (NMAccessPoint *ap, char *key, NMEncKeyType type); void nm_ap_set_enc_key_source (NMAccessPoint *ap, const char *key, NMEncKeyType type);
gboolean nm_ap_get_encrypted (NMAccessPoint *ap); gboolean nm_ap_get_encrypted (NMAccessPoint *ap);
void nm_ap_set_encrypted (NMAccessPoint *ap, gboolean encrypted); void nm_ap_set_encrypted (NMAccessPoint *ap, gboolean encrypted);
......
...@@ -71,7 +71,7 @@ static char *nm_wireless_md5_digest_to_ascii (unsigned char digest[16]) ...@@ -71,7 +71,7 @@ static char *nm_wireless_md5_digest_to_ascii (unsigned char digest[16])
* MD5 algorithm. * MD5 algorithm.
* *
*/ */
char *nm_wireless_128bit_key_from_passphrase (char *passphrase) char *nm_wireless_128bit_key_from_passphrase (const char *passphrase)
{ {
char md5_data[65]; char md5_data[65];
unsigned char digest[16]; unsigned char digest[16];
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "NetworkManagerDevice.h" #include "NetworkManagerDevice.h"
#include "NetworkManagerAPList.h" #include "NetworkManagerAPList.h"
char * nm_wireless_128bit_key_from_passphrase (char *passphrase); char * nm_wireless_128bit_key_from_passphrase (const char *passphrase);
gboolean nm_wireless_scan_monitor (gpointer user_data); gboolean nm_wireless_scan_monitor (gpointer user_data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment