Error in Mac OS X: Use of undeclared identifiers `kSecReturnAttributes` and `kSecMatchLimitAll` #4

Closed
pkamb opened this Issue Dec 8, 2011 · 4 comments

Comments

Projects
None yet
2 participants
@pkamb

pkamb commented Dec 8, 2011

Importing the given SSKeychain.h and SSKeychain.m files into an OS X project gives the following errors:

Use of undeclared identifier kSecReturnAttributes
Use of undeclared identifier kSecMatchLimitAll

The readme says that SSKeychain will work for both OS X and iOS, is that true?

Are there any additional dependencies to resolve the errors listed above?

I have already added Security.framework to my target.

@soffes

This comment has been minimized.

Show comment Hide comment
@soffes

soffes Dec 8, 2011

Owner

I'm guessing those are newer defines. I probably just need to #ifdef them out. Feel free to send a pull request if you get it figured out.

Owner

soffes commented Dec 8, 2011

I'm guessing those are newer defines. I probably just need to #ifdef them out. Feel free to send a pull request if you get it figured out.

@pkamb

This comment has been minimized.

Show comment Hide comment
@pkamb

pkamb Dec 9, 2011

Lines such as [dictionary setObject:(id)kSecClassGenericPassword forKey:(id)kSecClass]; are also giving errors. Digging a little deeper I find Apple docs saying:

"IMPORTANT: on Mac OS X 10.6, only items of class kSecClassInternetPassword are currently supported."

Has anyone gotten this working on Snow Leopard, or OS X in general?

pkamb commented Dec 9, 2011

Lines such as [dictionary setObject:(id)kSecClassGenericPassword forKey:(id)kSecClass]; are also giving errors. Digging a little deeper I find Apple docs saying:

"IMPORTANT: on Mac OS X 10.6, only items of class kSecClassInternetPassword are currently supported."

Has anyone gotten this working on Snow Leopard, or OS X in general?

@soffes

This comment has been minimized.

Show comment Hide comment
@soffes

soffes Dec 9, 2011

Owner

Darn. Didn't know that. All of my tests passed the last time I touched this library on Lion. Feel free to fork and fix.

Owner

soffes commented Dec 9, 2011

Darn. Didn't know that. All of my tests passed the last time I touched this library on Lion. Feel free to fork and fix.

@soffes

This comment has been minimized.

Show comment Hide comment
@soffes

soffes Mar 11, 2016

Owner

SSKeychain supports OS X 10.8 and higher. Closing this.

Owner

soffes commented Mar 11, 2016

SSKeychain supports OS X 10.8 and higher. Closing this.

@soffes soffes closed this Mar 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment