r332 | jonas | 2010-12-08 11:18:24 +0100 (Wed, 08 Dec 2010) | 3 lines

* enable parts of Security framwork for iOS because newer iOS SDK versions
    depend on them

git-svn-id: trunk@16520 -
This commit is contained in:
Jonas Maebe 2010-12-08 10:19:08 +00:00
parent 8c4b6c9de2
commit 43e57f3911
2 changed files with 6 additions and 8 deletions

View File

@ -186,9 +186,7 @@ uses MacTypes,CFBase;
{$endc} {not MACOSALLINCLUDE} {$endc} {not MACOSALLINCLUDE}
{$ifc TARGET_OS_MAC} {$ifc TARGET_CPU_64 or TARGET_CPU_ARM}
{$ifc TARGET_CPU_64}
{$packrecords C} {$packrecords C}
{$elsec} {$elsec}
{$ALIGN POWER} {$ALIGN POWER}
@ -478,8 +476,6 @@ const
errSecPkcs12VerifyFailure = -25264; { MAC verification failed during PKCS12 Import. } errSecPkcs12VerifyFailure = -25264; { MAC verification failed during PKCS12 Import. }
errSecDecode = -26275; { Unable to decode the provided data. } errSecDecode = -26275; { Unable to decode the provided data. }
{$endc} {TARGET_OS_MAC}
{$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE} {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
end. end.

View File

@ -186,8 +186,6 @@ uses MacTypes,SecBase,cssmtype,cssmapple,CFBase,CFArray,CFData,CFDate;
{$endc} {not MACOSALLINCLUDE} {$endc} {not MACOSALLINCLUDE}
{$ifc TARGET_OS_MAC}
{! {!
@header SecTrust @header SecTrust
The functions and data types in SecTrust implement trust computation and allow the user to apply trust decisions to the trust configuration. The functions and data types in SecTrust implement trust computation and allow the user to apply trust decisions to the trust configuration.
@ -261,6 +259,7 @@ function SecTrustCreateWithCertificates( certificates: CFArrayRef; policies: CFT
} }
function SecTrustSetPolicies( trust: SecTrustRef; policies: CFTypeRef ): OSStatus; external name '_SecTrustSetPolicies'; function SecTrustSetPolicies( trust: SecTrustRef; policies: CFTypeRef ): OSStatus; external name '_SecTrustSetPolicies';
{$ifc TARGET_OS_MAC}
{! {!
@function SecTrustSetParameters @function SecTrustSetParameters
@abstract Sets the action and action data for a trust. @abstract Sets the action and action data for a trust.
@ -270,6 +269,7 @@ function SecTrustSetPolicies( trust: SecTrustRef; policies: CFTypeRef ): OSStatu
@result A result code. See "Security Error Codes" (SecBase.h). @result A result code. See "Security Error Codes" (SecBase.h).
} }
function SecTrustSetParameters( trustRef: SecTrustRef; action: CSSM_TP_ACTION; actionData: CFDataRef ): OSStatus; external name '_SecTrustSetParameters'; function SecTrustSetParameters( trustRef: SecTrustRef; action: CSSM_TP_ACTION; actionData: CFDataRef ): OSStatus; external name '_SecTrustSetParameters';
{$endc} {TARGET_OS_MAC}
{! {!
@function SecTrustSetAnchorCertificates @function SecTrustSetAnchorCertificates
@ -328,6 +328,7 @@ function SecTrustGetVerifyTime( trust: SecTrustRef ): CFAbsoluteTime; external n
} }
function SecTrustEvaluate( trust: SecTrustRef; var result: SecTrustResultType ): OSStatus; external name '_SecTrustEvaluate'; function SecTrustEvaluate( trust: SecTrustRef; var result: SecTrustResultType ): OSStatus; external name '_SecTrustEvaluate';
{$ifc TARGET_OS_MAC}
{! {!
@function SecTrustGetResult @function SecTrustGetResult
@abstract Returns detail information on the outcome of a call to SecTrustEvaluate. @abstract Returns detail information on the outcome of a call to SecTrustEvaluate.
@ -365,6 +366,7 @@ function SecTrustGetCssmResultCode( trust: SecTrustRef; var resultCode: OSStatus
@result A result code. See "Security Error Codes" (SecBase.h). @result A result code. See "Security Error Codes" (SecBase.h).
} }
function SecTrustGetTPHandle( trust: SecTrustRef; var handle: CSSM_TP_HANDLE ): OSStatus; external name '_SecTrustGetTPHandle'; function SecTrustGetTPHandle( trust: SecTrustRef; var handle: CSSM_TP_HANDLE ): OSStatus; external name '_SecTrustGetTPHandle';
{$endc} {TARGET_OS_MAC}
{! {!
@function SecTrustCopyPolicies @function SecTrustCopyPolicies
@ -393,6 +395,7 @@ function SecTrustCopyCustomAnchorCertificates( trust: SecTrustRef; var anchors:
} }
function SecTrustCopyAnchorCertificates( var anchors: CFArrayRef ): OSStatus; external name '_SecTrustCopyAnchorCertificates'; function SecTrustCopyAnchorCertificates( var anchors: CFArrayRef ): OSStatus; external name '_SecTrustCopyAnchorCertificates';
{$ifc TARGET_OS_MAC}
{! {!
@function SecTrustGetCSSMAnchorCertificates @function SecTrustGetCSSMAnchorCertificates
@abstract Retrieves the CSSM anchor certificates. @abstract Retrieves the CSSM anchor certificates.
@ -429,7 +432,6 @@ function SecTrustGetUserTrust( certificate: SecCertificateRef; policy: SecPolicy
} }
function SecTrustSetUserTrust( certificate: SecCertificateRef; policy: SecPolicyRef; trustSetting: SecTrustUserSetting ): OSStatus; external name '_SecTrustSetUserTrust'; function SecTrustSetUserTrust( certificate: SecCertificateRef; policy: SecPolicyRef; trustSetting: SecTrustUserSetting ): OSStatus; external name '_SecTrustSetUserTrust';
(* DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER *) (* DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER *)
{$endc} {TARGET_OS_MAC} {$endc} {TARGET_OS_MAC}
{$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE} {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}