Make compile on Leopard.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22083 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -38,11 +38,13 @@ RCSID("$Id$");
|
|||||||
|
|
||||||
#include <Security/Security.h>
|
#include <Security/Security.h>
|
||||||
|
|
||||||
/* Missing function decls */
|
/* Missing function decls in pre Leopard */
|
||||||
|
#ifndef kSecCredentialTypeDefault
|
||||||
OSStatus SecKeyGetCSPHandle(SecKeyRef, CSSM_CSP_HANDLE *);
|
OSStatus SecKeyGetCSPHandle(SecKeyRef, CSSM_CSP_HANDLE *);
|
||||||
OSStatus SecKeyGetCredentials(SecKeyRef, CSSM_ACL_AUTHORIZATION_TAG,
|
OSStatus SecKeyGetCredentials(SecKeyRef, CSSM_ACL_AUTHORIZATION_TAG,
|
||||||
int, const CSSM_ACCESS_CREDENTIALS **);
|
int, const CSSM_ACCESS_CREDENTIALS **);
|
||||||
#define kSecCredentialTypeDefault 0
|
#define kSecCredentialTypeDefault 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@@ -50,7 +52,7 @@ getAttribute(SecKeychainItemRef itemRef, SecItemAttr item,
|
|||||||
SecKeychainAttributeList **attrs)
|
SecKeychainAttributeList **attrs)
|
||||||
{
|
{
|
||||||
SecKeychainAttributeInfo attrInfo;
|
SecKeychainAttributeInfo attrInfo;
|
||||||
uint32 attrFormat = 0;
|
UInt32 attrFormat = 0;
|
||||||
OSStatus ret;
|
OSStatus ret;
|
||||||
|
|
||||||
*attrs = NULL;
|
*attrs = NULL;
|
||||||
@@ -408,7 +410,7 @@ keychain_iter(hx509_context context,
|
|||||||
{
|
{
|
||||||
SecKeychainAttributeList *attrs = NULL;
|
SecKeychainAttributeList *attrs = NULL;
|
||||||
SecKeychainAttributeInfo attrInfo;
|
SecKeychainAttributeInfo attrInfo;
|
||||||
uint32 attrFormat[1] = { 0 };
|
UInt32 attrFormat[1] = { 0 };
|
||||||
SecKeychainItemRef itemRef;
|
SecKeychainItemRef itemRef;
|
||||||
SecItemAttr item[1];
|
SecItemAttr item[1];
|
||||||
struct iter *iter = cursor;
|
struct iter *iter = cursor;
|
||||||
|
Reference in New Issue
Block a user