Changeset 78
- Timestamp:
- 12/27/05 14:57:55 (3 years ago)
- Files:
-
- trunk/Controller.m (modified) (3 diffs)
- trunk/PassphraseRequester.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Controller.m
r77 r78 389 389 consultKeychain = YES; 390 390 accountName = [[[[question substringFromIndex:[firstQuestion length]] 391 componentsSeparatedByString:@": "] objectAtIndex:0] cString];391 componentsSeparatedByString:@": "] objectAtIndex:0] UTF8String]; 392 392 } 393 393 … … 397 397 { 398 398 consultKeychain = [[NSUserDefaults standardUserDefaults] boolForKey:AddInteractivePasswordString]; 399 accountName = [[[question componentsSeparatedByString:@"'s"] objectAtIndex:0] cString];399 accountName = [[[question componentsSeparatedByString:@"'s"] objectAtIndex:0] UTF8String]; 400 400 } 401 401 … … 533 533 GetFrontProcess(&focusSerialNumber); 534 534 535 SecKeychainAddGenericPassword(nil, strlen(serviceName), serviceName, strlen(accountName), accountName, [passphrase length], (const void *)[passphrase cString], nil);535 SecKeychainAddGenericPassword(nil, strlen(serviceName), serviceName, strlen(accountName), accountName, [passphrase length], (const void *)[passphrase UTF8String], nil); 536 536 537 537 SetFrontProcess(&focusSerialNumber); trunk/PassphraseRequester.m
r28 r78 48 48 } 49 49 50 printf("%s\n", [passphrase cString]);50 printf("%s\n", [passphrase UTF8String]); 51 51 52 52 [pool release];
