Accessing the Keychain

Archives Forums/MacOS X Discussion/Accessing the Keychain

Queller(Posted 2009) [#1]
Is it possible to access the keychain with BlitzMax? If so, how does one go about storing to/retrieving something from it?


jkrankie(Posted 2009) [#2]
I would have thought you would need to write some c functions to do this, then add these functions as externs in you bmx code.

Cheers
Charlie


Brucey(Posted 2009) [#3]
Ta da!

http://developer.apple.com/documentation/Security/Reference/keychainservices/Reference/reference.html

:-)


Murilo(Posted 2010) [#4]
Sorry to dig up an old thread, but did you ever get this working Queller?

I want to store username and password details in the keychain.


Brucey(Posted 2010) [#5]
It's actually quite an interesting project. I've put off trying it out, but it might fit well with my other recent Mac-only modules...
I shall have a rummage over the weekend and see what needs done.


Murilo(Posted 2010) [#6]
This would be a great asset to your Mac specific modules! (and I'm not just saying this because I'd want to utilise it)


Brucey(Posted 2010) [#7]
I've added a new module to my maxmods SVN, BaH.Keychain.

It covers the most common API functionality.
If anyone needs more low-level access, I can look into it...

Some more info here.

Have fun :-)


Murilo(Posted 2010) [#8]
Quality!

Thanks again for your valued contributions. My current project would not be going quite so smoothly without them - I'm already using your libcurl and libxml modules.