I am trying to write a simple test application to access OS X keychain. Add/Update/Delete an entry using C/C++. I am just testing whether I can use this in a larger C/C++ code base that we have, where we need a secure secret storage, hence the language requirements.
I looked up the API that Apple has on this but that is mostly in Objective-C. Are there any solutions anyone is aware of? The only thing I could find was Apple's Security tool which seems old and am not sure if the APIs are still supported.
Thanks in advance.
SecKeychainAddGenericPassword
, for example, is a C API. – UpswingGenericKeychain
but at some point it got ported to swift. If you drill into the keychain services documentation, you'll see it's all C... – GuardianshipSecKeychainAddGenericPassword
function mentioned is a C function. There is no Objective C involved. – Guardianship