| 410 | | status = SecKeychainFindGenericPassword(nil, strlen(serviceName), serviceName, strlen(accountName), accountName, &passwordLength, (void **)&kcPassword, nil); |
|---|
| 411 | | |
|---|
| | 410 | if(!interaction) |
|---|
| | 411 | { |
|---|
| | 412 | SecKeychainSetUserInteractionAllowed(NO); |
|---|
| | 413 | status = SecKeychainFindGenericPassword(nil, strlen(serviceName), serviceName, strlen(accountName), accountName, &passwordLength, (void **)&kcPassword, nil); |
|---|
| | 414 | SecKeychainSetUserInteractionAllowed(YES); |
|---|
| | 415 | } |
|---|
| | 416 | |
|---|
| | 417 | else |
|---|
| | 418 | { |
|---|
| | 419 | status = SecKeychainFindGenericPassword(nil, strlen(serviceName), serviceName, strlen(accountName), accountName, &passwordLength, (void **)&kcPassword, nil); |
|---|
| | 420 | } |
|---|
| | 421 | |
|---|