• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WEPKEY ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WEPKEY ?


  • Subject: WEPKEY ?
  • From: Halit Özüberk (ProDyne) <email@hidden>
  • Date: Tue, 5 Jul 2005 17:32:37 +0200
  • Thread-topic: WEPKEY ?

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

//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);
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Result:
mConst_m128WEPKey = "fed04a20e75a89ad3c58987fd6";

in the com.apple.MyWEPKEYTest File:
WEPKEY  Data  <39616163 64633230 33626464 32336534 66306436 64376166 3939>


If I give this WEPKEY ("ed04a20e75a89ad3c58987fd6") over Systempreferences.

in the preferences.plist File:
AuthPassword   Data  <abfdcec1 0566abab ce900563 aba9ce94 0567abac ce910563 aba3ce9d 0563abff ce970561 abaece9c 053baba3 ce930564 abffce92 >

????????????????

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Application launch from plugin
  • Next by Date: Larger application size
  • Previous by thread: Re: Core Video for Asynchronous Frame Grabbing
  • Next by thread: Larger application size
  • Index(es):
    • Date
    • Thread