From f4ae278f392573bf10f10e1850594dc612843688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 16 Nov 2007 17:15:58 +0000 Subject: [PATCH] Make compile on Leopard. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22083 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/ks_keychain.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/hx509/ks_keychain.c b/lib/hx509/ks_keychain.c index e9f4402f4..1970aff47 100644 --- a/lib/hx509/ks_keychain.c +++ b/lib/hx509/ks_keychain.c @@ -38,11 +38,13 @@ RCSID("$Id$"); #include -/* Missing function decls */ +/* Missing function decls in pre Leopard */ +#ifndef kSecCredentialTypeDefault OSStatus SecKeyGetCSPHandle(SecKeyRef, CSSM_CSP_HANDLE *); OSStatus SecKeyGetCredentials(SecKeyRef, CSSM_ACL_AUTHORIZATION_TAG, int, const CSSM_ACCESS_CREDENTIALS **); #define kSecCredentialTypeDefault 0 +#endif static int @@ -50,7 +52,7 @@ getAttribute(SecKeychainItemRef itemRef, SecItemAttr item, SecKeychainAttributeList **attrs) { SecKeychainAttributeInfo attrInfo; - uint32 attrFormat = 0; + UInt32 attrFormat = 0; OSStatus ret; *attrs = NULL; @@ -408,7 +410,7 @@ keychain_iter(hx509_context context, { SecKeychainAttributeList *attrs = NULL; SecKeychainAttributeInfo attrInfo; - uint32 attrFormat[1] = { 0 }; + UInt32 attrFormat[1] = { 0 }; SecKeychainItemRef itemRef; SecItemAttr item[1]; struct iter *iter = cursor;