Calling Keychain
Posted: Tue Feb 24, 2015 3:13 pm
Sorry for this but I havent tried this before so I am attempting to.
This is what I have if some one can help me with what I did wrong. I am trying to keep it in its simplest form to understand.
Thanks
I am getting this error:
I am referencing from here: https://developer.apple.com/library/mac ... index.html
This is what I have if some one can help me with what I did wrong. I am trying to keep it in its simplest form to understand.
Thanks
Code: Select all
;OSStatus SecKeychainFindGenericPassword ( CFTypeRef keychainOrArray, UInt32 serviceNameLength, const char *serviceName, UInt32 accountNameLength, const char *accountName, UInt32 *passwordLength, void **passwordData, SecKeychainItemRef *itemRef );
ImportC ""
SecKeychainFindGenericPassword (keychainOrArray.s, serviceNameLength.i, serviceName.s, accountNameLength.i, accountName.s, *passwordLength, *passwordData, *SecKeychainItemRef )
EndImport
sname.s="test"
aname.s="test"
Debug SecKeychainFindGenericPassword("",Len(sname),sname,Len(aname),aname,@passwordLength,@passwordData,@SecKeychainItemRef)Code: Select all
Undefined symbols for architecture x86_64:
"_SecKeychainFindGenericPassword", referenced from:
_main in purebasic.o
PStub_SecKeychainFindGenericPassword in purebasic.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)