title: Unlocking Osx Local Items keychain
body: <p>I'm trying to unlock the Local Items keychain in OSX programmatically.</p>
  
  <p>I'm unlocking login.keychain with /usr/bin/security tool. In some scenarios, unlocking login.keychain programmatically unlocks Local Items indirectly. Other times, Local Items is not unlocked and the user gets several prompts to unlock it. I need to know how to access Local Items directly, in my C program. </p>
  
  <p>Unfortunately, running security list-keychain in /Library/Keychains/ does not even list the Local Items keychain. Why is that?</p>
  
  <p>Is there any way to access and modify Local Items directly?</p>
  
  <p>Platform: Maverick and Yosemite</p>
  
  <p>Update: I have now also tried unlocking the login keychain with the security API (SecKeychainUnlock), the problem with locked Local Items still persists.</p>