X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/f61f9da6a07a3d2ebdc5f46600856eca0fe83897..bf998c10baabbd95f2d59d29f9edea0eb107b156:/Bridge.def

diff --git a/Bridge.def b/Bridge.def
index 1d3c4f0..35b1d58 100644
--- a/Bridge.def
+++ b/Bridge.def
@@ -2,9 +2,9 @@ C YES true
 C NO false
 C NULL null
 
-: applicationDidFinishLaunching: v12@0:4@8
-
 T id @
+T Class #
+T SEL :
 
 T short s
 T int i
@@ -168,9 +168,6 @@ V UINavigationControllerHideShowBarDuration f
 
 # UINavigationControllerDelegate
 
-: navigationController:willShowViewController:animated: v20@0:4@8@12B16
-: navigationController:didShowViewController:animated: v20@0:4@8@12B16
-
 # UIScrollView
 
 C UIScrollViewIndicatorStyleDefault 0
@@ -182,29 +179,10 @@ V UIScrollViewDecelerationRateFast f
 
 # UIScrollViewDelegate
 
-: scrollViewDidScroll: v12@0:4@8
-: scrollViewWillBeginDragging: v12@0:4@8
-: scrollViewDidEndDragging:willDecelerate: v16@0:4@8B12
-: scrollViewShouldScrollToTop: B12@0:4@8
-: scrollViewDidScrollToTop: v12@0:4@8
-: scrollViewWillBeginDecelerating: v12@0:4@8
-: scrollViewDidEndDecelerating: v12@0:4@8
-
-: viewForZoomingInScrollView: @12@0:4@8
-: scrollViewDidEndZooming:withView:atScale: v20@0:4@8@12f16
-
-: scrollViewDidEndScrollingAnimation: v12@0:4@8
-
 # UITabBar
 
 # UITabBarDelegate
 
-: tabBar:willBeginCustomizingItems: v16@0:4@8@12
-: tabBar:didBeginCustomizingItems: v16@0:4@8@12
-: tabBar:willBeginCustomizingItems:changed: v20@0:4@8@12B16
-: tabBar:didBeginCustomizingItems:changed: v20@0:4@8@12B16
-: tabBar:didSelectItem: v16@0:4@8@12
-
 # UITableView
 
 C UITableViewStylePlain 0
@@ -255,20 +233,6 @@ C UITableViewCellSeparatorStyleSingleLine 1
 
 # UITableViewDataSource
 
-: tableView:numberOfRowsInSection: i16@0:4@8i12
-: numberOfSectionsInTableView: i12@0:4@8
-: tableView:cellForRowAtIndexPath: @16@0:4@8@12
-: sectionIndexTitlesForTableView: @12@0:4@8
-: tableView:sectionForSectionIndexTitle:atIndex: i20@0:4@8@12i16
-: tableView:titleForHeaderInSection: @16@0:4@8i12
-: tableView:titleForFooterInSection: @16@0:4@8i12
-
-: tableView:commitEditingStyle:forRowAtIndexPath: v20@0:4@8i12@16
-: tableView:canEditRowAtIndexPath: B16@0:4@8@12
-
-: tableView:canMoveRowAtIndexPath: B16@0:4@8@12
-: tableView:moveRowAtIndexPath:toIndexPath: v20@0:4@8@12@16
-
 # UIToolbar
 
 # UIView
@@ -323,11 +287,6 @@ C UIWebViewNavigationTypeOther 5
 
 # UIWebViewDelegate
 
-: webView:shouldStartLoadWithRequest:navigationType: B20@0:4@8@12I16
-: webViewDidStartLoad: v12@0:4@8
-: webViewDidFinishLoad: v12@0:4@8
-: webView:didFailLoadWithError: v16@0:4@8@12
-
 # UIWindow
 
 V UIWindowLevelNormal f
@@ -455,6 +414,252 @@ V UIWebViewGrowsAndShrinksToFitHeight f
 V UIWebViewGrowsAndShrinksToFitWidth f
 V UIWebViewScalesToFitScale f
 
+f Security
+
+T OSStatus {ulong}
+
+F SecCertificateAddToKeychain {OSStatus}@@
+F SecCertificateCopyCommonName {OSStatus}@^@
+F SecCertificateCopyData @@
+F SecCertificateCopyEmailAddresses {OSStatus}@^@
+F SecCertificateCopyLongDescription @@@^@
+F SecCertificateCopyNormalizedIssuerContent @@^@
+F SecCertificateCopyNormalizedSubjectContent @@^@
+F SecCertificateCopyPreferred @@@
+F SecCertificateCopyPublicKey {OSStatus}@^@
+F SecCertificateCopySerialNumber @@^@
+F SecCertificateCopyShortDescription @@@^@
+F SecCertificateCopySubjectSummary @@
+F SecCertificateCopyValues @@@^@
+F SecCertificateCreateWithData @@@
+F SecCertificateGetItem @@^@
+F SecCertificateGetTypeID {CFTypeID}
+F SecCertificateSetPreference {OSStatus}@@{uint32_t}@
+F SecCertificateSetPreferred {OSStatus}@@@
+F SecCopyErrorMessageString @{OSStatus}^v
+F SecIdentityCopyCertificate {OSStatus}@^@
+F SecIdentityCopyPreferred @@@@
+F SecIdentityCopyPrivateKey {OSStatus}@^@
+F SecIdentityCopySystemIdentity {OSStatus}@^@^@
+F SecIdentityCreateWithCertificate {OSStatus}@@^@
+F SecIdentityGetTypeID {CFTypeID}
+F SecIdentitySetPreferred {OSStatus}@@@
+F SecIdentitySetSystemIdentity {OSStatus}@@
+F SecKeyCreateFromData @@@^@
+F SecKeyDeriveFromPassword @@@^@
+F SecKeyGeneratePair {OSStatus}@^@^@
+F SecKeyGeneratePairAsync v@{dispatch_queue_t}@?
+F SecKeyGenerateSymmetric @@^@
+F SecKeyGetBlockSize {size_t}@
+F SecKeyGetTypeID {CFTypeID}
+F SecKeyUnwrapSymmetric @^@@@^@
+F SecKeyWrapSymmetric @@@@^@
+F SecPKCS12Import {OSStatus}@@^@
+F SecPolicyCopyProperties @@
+F SecPolicyCreateBasicX509 @
+F SecPolicyCreateSSL @B@
+F SecPolicyGetTypeID {CFTypeID}
+F SecTrustCopyAnchorCertificates {OSStatus}^@
+F SecTrustCopyCustomAnchorCertificates {OSStatus}@^@
+F SecTrustCopyExceptions @@
+F SecTrustCopyPolicies {OSStatus}@^@
+F SecTrustCopyProperties @@
+F SecTrustCopyPublicKey @@
+F SecTrustCreateWithCertificates {OSStatus}@@^@
+F SecTrustEvaluate {OSStatus}@^@
+F SecTrustEvaluateAsync @{dispatch_queue_t}@?
+F SecTrustGetCertificateAtIndex @@{CFIndex}
+F SecTrustGetCertificateCount {CFIndex}@
+F SecTrustGetTrustResult {OSStatus}@^@
+F SecTrustGetTypeID {CFTypeID}
+F SecTrustGetVerifyTime {CFAbsoluteTime}@
+F SecTrustSetAnchorCertificates {OSStatus}@@
+F SecTrustSetAnchorCertificatesOnly {OSStatus}@B
+F SecTrustSetExceptions B@@
+F SecTrustSetKeychains {OSStatus}@@
+F SecTrustSetOptions {OSStatus}@{SecTrustOptionFlags}
+F SecTrustSetPolicies {OSStatus}@@
+F SecTrustSettingsCopyCertificates {OSStatus}{SecTrustSettingsDomain}^@
+F SecTrustSettingsCopyModificationDate {OSStatus}@{SecTrustSettingsDomain}^@
+F SecTrustSettingsCopyTrustSettings {OSStatus}@{SecTrustSettingsDomain}^@
+F SecTrustSettingsCreateExternalRepresentation {OSStatus}{SecTrustSettingsDomain}^@
+F SecTrustSettingsImportExternalRepresentation {OSStatus}{SecTrustSettingsDomain}@
+F SecTrustSettingsRemoveTrustSettings {OSStatus}@{SecTrustSettingsDomain}
+F SecTrustSettingsSetTrustSettings {OSStatus}@{SecTrustSettingsDomain}@
+F SecTrustSetVerifyDate {OSStatus}@@
+
+C CSSM_CERT_STATUS_EXPIRED 0x00000001
+C CSSM_CERT_STATUS_NOT_VALID_YET 0x00000002
+C CSSM_CERT_STATUS_IS_IN_INPUT_CERTS 0x00000004
+C CSSM_CERT_STATUS_IS_IN_ANCHORS 0x00000008
+C CSSM_CERT_STATUS_IS_ROOT 0x00000010
+C CSSM_CERT_STATUS_IS_FROM_NET 0x00000020
+
+C kSecPaddingNone 0
+C kSecPaddingPKCS1 1
+C kSecPaddingPKCS1MD2 0x8000
+C kSecPaddingPKCS1MD5 0x8001
+C kSecPaddingPKCS1SHA1 0x8002
+
+C kSecTrustResultInvalid 0
+C kSecTrustResultProceed 1
+C kSecTrustResultConfirm 2
+C kSecTrustResultDeny 3
+C kSecTrustResultUnspecified 4
+C kSecTrustResultRecoverableTrustFailure 5
+C kSecTrustResultFatalTrustFailure 6
+C kSecTrustResultOtherError 7
+
+C CSSM_TP_ACTION_ALLOW_EXPIRED 0x00000001
+C CSSM_TP_ACTION_LEAF_IS_CA 0x00000002
+C CSSM_TP_ACTION_FETCH_CERT_FROM_NET 0x00000004
+C CSSM_TP_ACTION_ALLOW_EXPIRED_ROOT 0x00000008
+
+V kSecImportItemLabel @
+V kSecImportItemKeyID @
+V kSecImportItemTrust @
+V kSecImportItemCertChain @
+V kSecImportItemIdentity @
+
+V kSecIdentityDomainDefault @
+V kSecIdentityDomainKerberosKDC @
+
+C kSecCredentialTypeDefault 0
+C kSecCredentialTypeWithUI 1
+C kSecCredentialTypeNoUI 2
+
+T SecTrustSettingsDomain {uint32_t}
+C kSecTrustSettingsDomainUser 0
+C kSecTrustSettingsDomainAdmin 1
+C kSecTrustSettingsDomainSystem 2
+
+C kSecTrustSettingsKeyUseSignature 0x00000001
+C kSecTrustSettingsKeyUseEnDecryptData 0x00000002
+C kSecTrustSettingsKeyUseEnDecryptKey 0x00000004
+C kSecTrustSettingsKeyUseSignCert 0x00000008
+C kSecTrustSettingsKeyUseSignRevocation 0x00000010
+C kSecTrustSettingsKeyUseKeyExchange 0x00000020
+C kSecTrustSettingsKeyUseAny 0xffffffff
+
+C kSecTrustSettingsPolicy @"kSecTrustSettingsPolicy"
+C kSecTrustSettingsApplication @"kSecTrustSettingsApplication"
+C kSecTrustSettingsPolicyString @"kSecTrustSettingsPolicyString"
+C kSecTrustSettingsKeyUsage @"kSecTrustSettingsKeyUsage"
+C kSecTrustSettingsAllowedError @"kSecTrustSettingsAllowedError"
+C kSecTrustSettingsResult @"kSecTrustSettingsResult"
+
+C kSecTrustSettingsResultInvalid 0
+C kSecTrustSettingsResultTrustRoot 1
+C kSecTrustSettingsResultTrustAsRoot 2
+C kSecTrustSettingsResultDeny 3
+C kSecTrustSettingsResultUnspecified 4
+
+# XXX: this is a pointer...
+C kSecTrustSettingsDefaultRootCertSetting -1
+
+V kSecPropertyKeyType @
+V kSecPropertyKeyLabel @
+V kSecPropertyKeyLocalizedLabel @
+V kSecPropertyKeyValue @
+
+V kSecPropertyTypeWarning @
+V kSecPropertyTypeSuccess @
+V kSecPropertyTypeSection @
+V kSecPropertyTypeData @
+V kSecPropertyTypeString @
+V kSecPropertyTypeURL @
+V kSecPropertyTypeDate @
+V kSecPropertyTypeTitle @
+V kSecPropertyTypeError @
+
+V kSecCertificateUsageSigning @
+V kSecCertificateUsageSigningAndEncrypting @
+V kSecCertificateUsageDeriveAndSign @
+
+V kSecPolicyOid @
+V kSecPolicyName @
+V kSecPolicyClient @
+V kSecPolicyKU_DigitalSignature @
+V kSecPolicyKU_NonRepudiation @
+V kSecPolicyKU_KeyEncipherment @
+V kSecPolicyKU_DataEncipherment @
+V kSecPolicyKU_KeyAgreement @
+V kSecPolicyKU_KeyCertSign @
+V kSecPolicyKU_CRLSign @
+V kSecPolicyKU_EncipherOnly @
+V kSecPolicyKU_DecipherOnly @
+
+C kSecTrustOptionAllowExpired 0x00000001
+C kSecTrustOptionLeafIsCA 0x00000002
+C kSecTrustOptionFetchIssuerFromNet 0x00000004
+C kSecTrustOptionAllowExpiredRoot 0x00000008
+C kSecTrustOptionRequireRevPerCert 0x00000010
+C kSecTrustOptionImplicitAnchors 0x00000040
+
+C kSecDefaultKeySize 0
+C kSec3DES192 192
+C kSecAES128 128
+C kSecAES192 192
+C kSecAES256 256
+C kSecp192r1 192
+C kSecp256r1 256
+C kSecp384r1 384
+C kSecp521r1 521
+C kSecRSAMin 1024
+C kSecRSAMax 4096
+
+V kSecPolicyAppleX509Basic @
+V kSecPolicyAppleSSL @
+V kSecPolicyAppleSMIME @
+V kSecPolicyAppleEAP @
+V kSecPolicyAppleIPsec @
+V kSecPolicyAppleiCha @
+V kSecPolicyApplePKINITClient @
+V kSecPolicyApplePKINITServer @
+V kSecPolicyAppleCodeSigning @
+V kSecPolicyMacAppStoreReceipt @
+V kSecPolicyAppleIDValidation @
+V kSecPolicyAppleTimeStamping @
+
+C errSecSuccess 0
+C errSecUnimplemented -4
+C errSecParam -50
+C errSecAllocate  -108
+C errSecNotAvailable  â25291
+C errSecReadOnly  â25292
+C errSecAuthFailed  â25293
+C errSecNoSuchKeychain  â25294
+C errSecInvalidKeychain â25295
+C errSecDuplicateKeychain â25296
+C errSecDuplicateItem â25299
+C errSecItemNotFound  â25300
+C errSecBufferTooSmall  â25301
+C errSecDataTooLarge  â25302
+C errSecNoSuchAttr  â25303
+C errSecInvalidItemRef  â25304
+C errSecInvalidSearchRef  â25305
+C errSecNoSuchClass â25306
+C errSecNoDefaultKeychain â25307
+C errSecInteractionNotAllowed â25308
+C errSecReadOnlyAttr  â25309
+C errSecWrongSecVersion â25310
+C errSecKeySizeNotAllowed â25311
+C errSecNoStorageModule â25312
+C errSecNoCertificateModule â25313
+C errSecNoPolicyModule  â25314
+C errSecInteractionRequired â25315
+C errSecDataNotAvailable  â25316
+C errSecDataNotModifiable â25317
+C errSecCreateChainFailed â25318
+C errSecInvalidPrefsDomain  â25319
+C errSecACLNotSimple  â25240
+C errSecPolicyNotFound  â25241
+C errSecInvalidTrustSetting â25242
+C errSecNoAccessForItem â25243
+C errSecInvalidOwnerEdit  â25244
+C errSecTrustNotAvailable â25245
+C errSecDecode  -26275
+
 f AddressBook
 
 # Private
@@ -1023,7 +1228,7 @@ V kCFDateFormatterIsLenient @
 V kCFDateFormatterTimeZone @
 V kCFDateFormatterCalendarName @
 V kCFDateFormatterDefaultFormat @
-   
+
 V kCFDateFormatterTwoDigitStartDate @
 V kCFDateFormatterDefaultDate @
 V kCFDateFormatterCalendar @
@@ -1034,7 +1239,7 @@ V kCFDateFormatterWeekdaySymbols @
 V kCFDateFormatterShortWeekdaySymbols @
 V kCFDateFormatterAMSymbol @
 V kCFDateFormatterPMSymbol @
-   
+
 V kCFDateFormatterLongEraSymbols @
 V kCFDateFormatterVeryShortMonthSymbols @
 V kCFDateFormatterStandaloneMonthSymbols @
@@ -1222,7 +1427,7 @@ F CFMakeCollectable {CFTypeRef}{CFTypeRef}
 F CFRelease v{CFTypeRef}
 F CFRetain {CFTypeRef}{CFTypeRef}
 
-F CFEqual 
+F CFEqual
 
 F CFHash {CFHashCode}{CFTypeRef}
 
