WG: WEP-Key in the preferences.plist FILE ??
WG: WEP-Key in the preferences.plist FILE ??
- Subject: WG: WEP-Key in the preferences.plist FILE ??
- From: Halit Özüberk (ProDyne) <email@hidden>
- Date: Thu, 30 Jun 2005 16:53:44 +0200
- Thread-topic: WEP-Key in the preferences.plist FILE ??
Title: Nachricht
//here
is my WEPKEY Test - Code
void* keys[1];
void* values[1];
char mConst_m128WEPKey[50];
CWepKeyArray
myWep;
myWep.setPassphrase("MYWEPKEYPASS");
memset(mConst_m128WEPKey,0,sizeof(mConst_m128WEPKey));
myWep.stringForStrongKey(mConst_m128WEPKey);
CFDataRef MyWepData;
MyWepData = CFDataCreate(NULL, (const unsigned
char*)mConst_m128WEPKey,26/* strlen(mConst_m128WEPKey)
*/);
keys[0] = (void*)
CFSTR("WEPKEY");
values[0] = (void*) MyWepData;
CFDictionaryRef
theDict = CFDictionaryCreate(kCFAllocatorDefault,(const void**)keys,(const
void**)values,1 , &kCFTypeDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks);
CFMutableDictionaryRef
theMutableDict = CFDictionaryCreateMutableCopy(NULL,
CFDictionaryGetCount(theDict) , theDict);
CFPreferencesSetValue(CFSTR("MyWEPKEY"),theMutableDict,
CFSTR("com.apple.MyWEPKEYTest"),kCFPreferencesCurrentUser,kCFPreferencesAnyHost);
CFPreferencesSynchronize(CFSTR("com.apple.MyWEPKEYTest")
, kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
if(MyWepData)
CFRelease(MyWepData);
if(theMutableDict)
CFRelease(theMutableDict);
if(theDict)
CFRelease(theDict);
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I program a tool and this tool furnishes a network
connection.
But I have problem with the WEPKey...
If I want
to store a WEPKEY in the network connection for an Airport, it is stored always
wrong.
I have looked with the preferences.plist file.
There the WEPKEY as Data are stored.
If the WEPKEY are stored encrypted
there...
If yes,
how they are encoded then and are stored
there...
I do not make headway at all...
THANKS
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden