├── .gitignore ├── .travis.yml ├── AVSQLDebugger.podspec ├── AVSQLDebugger.xcworkspace ├── contents.xcworkspacedata └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── AVSQLDebugger ├── AVSQLDebugger.xcodeproj │ └── project.pbxproj ├── AVSQLDebugger │ ├── AVSQLDebugger.h │ ├── Classes │ │ ├── AVDebugger.swift │ │ ├── GetDBViewController.swift │ │ ├── GetTableDataViewController.swift │ │ ├── Helpers │ │ │ ├── SystemInfoHelper.h │ │ │ └── SystemInfoHelper.m │ │ ├── QueryDBViewController.swift │ │ ├── Resources │ │ │ ├── GetDBViewController.html │ │ │ ├── GetTableDataViewController.html │ │ │ ├── QueryDBViewController.html │ │ │ ├── app.js │ │ │ ├── bootstrap.min.css │ │ │ ├── bootstrap.min.js │ │ │ ├── buttons.dataTables.min.css │ │ │ ├── custom.css │ │ │ ├── dataTables.altEditor.free.js │ │ │ ├── dataTables.buttons.min.js │ │ │ ├── dataTables.responsive.min.js │ │ │ ├── dataTables.select.min.js │ │ │ ├── index.html │ │ │ ├── jquery.dataTables.min.css │ │ │ ├── jquery.dataTables.min.js │ │ │ ├── jquery.min.js │ │ │ ├── responsive.dataTables.min.css │ │ │ └── select.dataTables.min.css │ │ └── Wrappers │ │ │ ├── AVDebugger+Servers.swift │ │ │ ├── Model+Helpers.swift │ │ │ ├── Model.swift │ │ │ ├── ProtocolsReprsentable.swift │ │ │ ├── ServerError.swift │ │ │ ├── SqliteWrapper.swift │ │ │ └── String+Representable.swift │ └── Info.plist └── AVSQLDebuggerTests │ ├── AVSQLDebuggerTests.swift │ └── Info.plist ├── Debug.png ├── Example ├── Example.xcodeproj │ └── project.pbxproj ├── Example │ ├── Account+CoreDataClass.swift │ ├── Account+CoreDataProperties.swift │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Example.xcdatamodeld │ │ ├── .xccurrentversion │ │ └── Example.xcdatamodel │ │ │ └── contents │ ├── Info.plist │ ├── SceneDelegate.swift │ ├── User+CoreDataClass.swift │ ├── User+CoreDataProperties.swift │ └── ViewController.swift └── ExampleTests │ ├── ExampleTests.swift │ └── Info.plist ├── LICENSE ├── Podfile ├── Podfile.lock ├── Pods ├── CocoaAsyncSocket │ ├── LICENSE.txt │ ├── README.markdown │ └── Source │ │ └── GCD │ │ ├── GCDAsyncSocket.h │ │ ├── GCDAsyncSocket.m │ │ ├── GCDAsyncUdpSocket.h │ │ └── GCDAsyncUdpSocket.m ├── Criollo │ ├── Criollo │ │ ├── Criollo.h │ │ └── Source │ │ │ ├── CRApplication.h │ │ │ ├── CRApplication.m │ │ │ ├── CRConnection.h │ │ │ ├── CRConnection.m │ │ │ ├── CRConnection_Internal.h │ │ │ ├── CRMessage.h │ │ │ ├── CRMessage.m │ │ │ ├── CRMessage_Internal.h │ │ │ ├── CRMimeTypeHelper.h │ │ │ ├── CRMimeTypeHelper.m │ │ │ ├── CRRequest.h │ │ │ ├── CRRequest.m │ │ │ ├── CRRequestRange.h │ │ │ ├── CRRequestRange.m │ │ │ ├── CRRequestRange_Internal.h │ │ │ ├── CRRequest_Internal.h │ │ │ ├── CRResponse.h │ │ │ ├── CRResponse.m │ │ │ ├── CRResponse_Internal.h │ │ │ ├── CRServer.h │ │ │ ├── CRServer.m │ │ │ ├── CRServerConfiguration.h │ │ │ ├── CRServerConfiguration.m │ │ │ ├── CRServer_Internal.h │ │ │ ├── CRStaticDirectoryManager.h │ │ │ ├── CRStaticDirectoryManager.m │ │ │ ├── CRStaticFileManager.h │ │ │ ├── CRStaticFileManager.m │ │ │ ├── CRTypes.h │ │ │ ├── CRUploadedFile.h │ │ │ ├── CRUploadedFile.m │ │ │ ├── CRUploadedFile_Internal.h │ │ │ ├── Extensions │ │ │ ├── NSDate+RFC1123.h │ │ │ ├── NSDate+RFC1123.m │ │ │ ├── NSHTTPCookie+Criollo.h │ │ │ ├── NSHTTPCookie+Criollo.m │ │ │ ├── NSString+Criollo.h │ │ │ └── NSString+Criollo.m │ │ │ ├── FCGI │ │ │ ├── CRFCGIConnection.h │ │ │ ├── CRFCGIConnection.m │ │ │ ├── CRFCGIRecord.h │ │ │ ├── CRFCGIRecord.m │ │ │ ├── CRFCGIRequest.h │ │ │ ├── CRFCGIRequest.m │ │ │ ├── CRFCGIResponse.h │ │ │ ├── CRFCGIResponse.m │ │ │ ├── CRFCGIServer.h │ │ │ ├── CRFCGIServer.m │ │ │ ├── CRFCGIServerConfiguration.h │ │ │ └── CRFCGIServerConfiguration.m │ │ │ ├── HTTP │ │ │ ├── CRHTTPConnection.h │ │ │ ├── CRHTTPConnection.m │ │ │ ├── CRHTTPResponse.h │ │ │ ├── CRHTTPResponse.m │ │ │ ├── CRHTTPSHelper.h │ │ │ ├── CRHTTPSHelper.m │ │ │ ├── CRHTTPServer.h │ │ │ ├── CRHTTPServer.m │ │ │ ├── CRHTTPServerConfiguration.h │ │ │ └── CRHTTPServerConfiguration.m │ │ │ └── Routing │ │ │ ├── CRNib.h │ │ │ ├── CRNib.m │ │ │ ├── CRRoute.h │ │ │ ├── CRRoute.m │ │ │ ├── CRRouteController.h │ │ │ ├── CRRouteController.m │ │ │ ├── CRRouteMatchingResult.h │ │ │ ├── CRRouteMatchingResult.m │ │ │ ├── CRRouteMatchingResult_Internal.h │ │ │ ├── CRRoute_Internal.h │ │ │ ├── CRRouter.h │ │ │ ├── CRRouter.m │ │ │ ├── CRRouter_Internal.h │ │ │ ├── CRView.h │ │ │ ├── CRView.m │ │ │ ├── CRViewController.h │ │ │ └── CRViewController.m │ ├── LICENSE │ ├── Libraries │ │ └── OpenSSL │ │ │ └── openssl.framework │ │ │ ├── Headers │ │ │ ├── aes.h │ │ │ ├── asn1.h │ │ │ ├── asn1_mac.h │ │ │ ├── asn1t.h │ │ │ ├── async.h │ │ │ ├── bio.h │ │ │ ├── blowfish.h │ │ │ ├── bn.h │ │ │ ├── buffer.h │ │ │ ├── camellia.h │ │ │ ├── cast.h │ │ │ ├── cmac.h │ │ │ ├── cms.h │ │ │ ├── comp.h │ │ │ ├── conf.h │ │ │ ├── conf_api.h │ │ │ ├── crypto.h │ │ │ ├── ct.h │ │ │ ├── des.h │ │ │ ├── dh.h │ │ │ ├── dsa.h │ │ │ ├── dtls1.h │ │ │ ├── e_os2.h │ │ │ ├── ebcdic.h │ │ │ ├── ec.h │ │ │ ├── ecdh.h │ │ │ ├── ecdsa.h │ │ │ ├── engine.h │ │ │ ├── err.h │ │ │ ├── evp.h │ │ │ ├── hmac.h │ │ │ ├── idea.h │ │ │ ├── kdf.h │ │ │ ├── lhash.h │ │ │ ├── md2.h │ │ │ ├── md4.h │ │ │ ├── md5.h │ │ │ ├── mdc2.h │ │ │ ├── modes.h │ │ │ ├── obj_mac.h │ │ │ ├── objects.h │ │ │ ├── ocsp.h │ │ │ ├── opensslconf.h │ │ │ ├── opensslconf_ios_arm64.h │ │ │ ├── opensslconf_ios_armv7.h │ │ │ ├── opensslconf_ios_armv7s.h │ │ │ ├── opensslconf_ios_i386.h │ │ │ ├── opensslconf_ios_x86_64.h │ │ │ ├── opensslconf_tvos_arm64.h │ │ │ ├── opensslconf_tvos_x86_64.h │ │ │ ├── opensslv.h │ │ │ ├── ossl_typ.h │ │ │ ├── pem.h │ │ │ ├── pem2.h │ │ │ ├── pkcs12.h │ │ │ ├── pkcs7.h │ │ │ ├── rand.h │ │ │ ├── rc2.h │ │ │ ├── rc4.h │ │ │ ├── rc5.h │ │ │ ├── ripemd.h │ │ │ ├── rsa.h │ │ │ ├── safestack.h │ │ │ ├── seed.h │ │ │ ├── sha.h │ │ │ ├── srp.h │ │ │ ├── srtp.h │ │ │ ├── ssl.h │ │ │ ├── ssl2.h │ │ │ ├── ssl3.h │ │ │ ├── stack.h │ │ │ ├── symhacks.h │ │ │ ├── tls1.h │ │ │ ├── ts.h │ │ │ ├── txt_db.h │ │ │ ├── ui.h │ │ │ ├── whrlpool.h │ │ │ ├── x509.h │ │ │ ├── x509_vfy.h │ │ │ └── x509v3.h │ │ │ ├── Info.plist │ │ │ └── openssl │ └── README.md ├── Local Podspecs │ └── AVSQLDebugger.podspec.json ├── Manifest.lock ├── Pods.xcodeproj │ └── project.pbxproj └── Target Support Files │ ├── AVSQLDebugger │ ├── AVSQLDebugger-Info.plist │ ├── AVSQLDebugger-dummy.m │ ├── AVSQLDebugger-prefix.pch │ ├── AVSQLDebugger-umbrella.h │ ├── AVSQLDebugger.modulemap │ └── AVSQLDebugger.xcconfig │ ├── CocoaAsyncSocket │ ├── CocoaAsyncSocket-Info.plist │ ├── CocoaAsyncSocket-dummy.m │ ├── CocoaAsyncSocket-prefix.pch │ ├── CocoaAsyncSocket-umbrella.h │ ├── CocoaAsyncSocket.modulemap │ └── CocoaAsyncSocket.xcconfig │ ├── Criollo │ ├── Criollo-Info.plist │ ├── Criollo-dummy.m │ ├── Criollo-prefix.pch │ ├── Criollo-umbrella.h │ ├── Criollo.modulemap │ └── Criollo.xcconfig │ ├── Pods-AVSQLDebugger │ ├── Pods-AVSQLDebugger-Info.plist │ ├── Pods-AVSQLDebugger-acknowledgements.markdown │ ├── Pods-AVSQLDebugger-acknowledgements.plist │ ├── Pods-AVSQLDebugger-dummy.m │ ├── Pods-AVSQLDebugger-umbrella.h │ ├── Pods-AVSQLDebugger.debug.xcconfig │ ├── Pods-AVSQLDebugger.modulemap │ └── Pods-AVSQLDebugger.release.xcconfig │ ├── Pods-Example │ ├── Pods-Example-Info.plist │ ├── Pods-Example-acknowledgements.markdown │ ├── Pods-Example-acknowledgements.plist │ ├── Pods-Example-dummy.m │ ├── Pods-Example-frameworks-Debug-input-files.xcfilelist │ ├── Pods-Example-frameworks-Debug-output-files.xcfilelist │ ├── Pods-Example-frameworks-Release-input-files.xcfilelist │ ├── Pods-Example-frameworks-Release-output-files.xcfilelist │ ├── Pods-Example-frameworks.sh │ ├── Pods-Example-umbrella.h │ ├── Pods-Example.debug.xcconfig │ ├── Pods-Example.modulemap │ └── Pods-Example.release.xcconfig │ └── Pods-ExampleTests │ ├── Pods-ExampleTests-Info.plist │ ├── Pods-ExampleTests-acknowledgements.markdown │ ├── Pods-ExampleTests-acknowledgements.plist │ ├── Pods-ExampleTests-dummy.m │ ├── Pods-ExampleTests-umbrella.h │ ├── Pods-ExampleTests.debug.xcconfig │ ├── Pods-ExampleTests.modulemap │ └── Pods-ExampleTests.release.xcconfig ├── README.md └── _config.yml /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | # Package.pins 40 | # Package.resolved 41 | .build/ 42 | 43 | # CocoaPods 44 | # 45 | # We recommend against adding the Pods directory to your .gitignore. However 46 | # you should judge for yourself, the pros and cons are mentioned at: 47 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 48 | # 49 | # Pods/ 50 | 51 | # Carthage 52 | # 53 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 54 | # Carthage/Checkouts 55 | 56 | Carthage/Build 57 | 58 | # fastlane 59 | # 60 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 61 | # screenshots whenever they are needed. 62 | # For more information about the recommended setup visit: 63 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 64 | 65 | fastlane/report.xml 66 | fastlane/Preview.html 67 | fastlane/screenshots/**/*.png 68 | fastlane/test_output 69 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode11 6 | language: objective-c 7 | 8 | cache: 9 | - cocoapods 10 | - xcpretty 11 | podfile: Podfile 12 | rvm: 13 | - 2.4.3 14 | before_install: 15 | - gem install cocoapods # Since Travis is not always on latest version 16 | - gem install xcpretty 17 | - pod install 18 | 19 | script: 20 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace AVSQLDebugger.xcworkspace -scheme Example -sdk iphonesimulator12.1 ONLY_ACTIVE_ARCH=NO | xcpretty 21 | #- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/UVCardView.xcworkspace Example -sdk iphonesimulator13.0 ONLY_ACTIVE_ARCH=NO | xcpretty 22 | - pod lib lint 23 | -------------------------------------------------------------------------------- /AVSQLDebugger.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "AVSQLDebugger" 3 | s.version = "1.0.2" 4 | s.summary = "A framework to easily debug your data storage in apps.." 5 | s.platform = :ios, "10.0" 6 | s.author = "Umesh Verma" 7 | s.license = { :type => 'MIT', :file => 'LICENSE' } 8 | s.homepage = 'https://github.com/umeshiscreative/AVSQLDebugger' 9 | s.source = { :git => "https://github.com/umeshiscreative/AVSQLDebugger.git", :tag => "#{s.version}" } 10 | s.source_files = ["AVSQLDebugger/AVSQLDebugger/**/*.{h,m,swift}"] 11 | s.resources = ["AVSQLDebugger/AVSQLDebugger/**/*.{html,js,css}"] 12 | s.requires_arc = true 13 | s.dependency "Criollo", '~> 0.4' 14 | s.pod_target_xcconfig = { 'SWIFT_VERSION' => '5.0' } 15 | s.ios.deployment_target = '10.0' 16 | s.swift_version = '5.0' 17 | end -------------------------------------------------------------------------------- /AVSQLDebugger.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /AVSQLDebugger.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/AVSQLDebugger.h: -------------------------------------------------------------------------------- 1 | // 2 | // AVSQLDebugger.h 3 | // AVSQLDebugger 4 | // 5 | // Created by Umesh 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for AVSQLDebugger. 12 | FOUNDATION_EXPORT double AVSQLDebuggerVersionNumber; 13 | 14 | //! Project version string for AVSQLDebugger. 15 | FOUNDATION_EXPORT const unsigned char AVSQLDebuggerVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | #import 20 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/GetDBViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GetDBViewController.swift 3 | // AVSQLDebugger 4 | // 5 | // Created by Umesh. 6 | // 7 | // 8 | 9 | import Criollo 10 | 11 | 12 | class GetDBViewController: CRViewController { 13 | 14 | private var db: SQLiteDatabase! 15 | 16 | override func present(with request: CRRequest, response: CRResponse) -> String { 17 | 18 | let path = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true) 19 | let filePath = "\(path[0])/\(AVDebugger.sharedInstance.containerName).sqlite" 20 | 21 | print(filePath) 22 | 23 | do { 24 | db = try SQLiteDatabase.open(path: filePath) 25 | 26 | #if DEBUG 27 | print("Successfully opened connection to database.") 28 | #endif 29 | 30 | if let res = db.showAllTables() { 31 | self.vars["data"] = res.description 32 | }else { 33 | self.vars["data"] = "{ error : No data found }" 34 | } 35 | } catch let err { 36 | print("Unable to open database. Verify that you created the directory described in the Getting Started section.\(err)") 37 | } 38 | 39 | return super.present(with: request, response: response) 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/GetTableDataViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HelloWorldViewController.swift 3 | // AVSQLDebugger 4 | // 5 | // Created by Umesh 6 | // 7 | // 8 | 9 | import Criollo 10 | 11 | 12 | class GetTableDataViewController: CRViewController { 13 | 14 | private var db: SQLiteDatabase! 15 | 16 | override func present(with request: CRRequest, response: CRResponse) -> String { 17 | 18 | let tablename = request.query["pid"] ?? "" 19 | 20 | let path = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true) 21 | let filePath = "\(path[0])/\(AVDebugger.sharedInstance.containerName).sqlite" 22 | 23 | do { 24 | db = try SQLiteDatabase.open(path: filePath) 25 | 26 | #if DEBUG 27 | print("Successfully opened connection to database.") 28 | #endif 29 | 30 | if let res = db.getTableData(tableName: tablename,executeQuery: "SELECT * FROM \(tablename);") { 31 | self.vars["data"] = res.description 32 | }else { 33 | self.vars["data"] = "{ error : No data found }" 34 | } 35 | 36 | } catch let err { 37 | print("Unable to open database. Verify that you created the directory described in the Getting Started section.\(err)") 38 | } 39 | 40 | 41 | return super.present(with: request, response: response) 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/Helpers/SystemInfoHelper.h: -------------------------------------------------------------------------------- 1 | // 2 | // SystemInfoHelper.h 3 | // CriolloApp 4 | // 5 | // Created by Cătălin Stan on 05/04/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | @import Foundation; 10 | 11 | #define CRBundleIdentifier @"io.criollo.Criollo" 12 | #define CRCriolloVersionFallback @"0.1.12" 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | @interface SystemInfoHelper : NSObject 17 | 18 | + (NSString *)IPAddress; 19 | + (NSString *)systemInfo; 20 | + (NSString *)systemVersion; 21 | + (NSString *)processName; 22 | + (NSString *)processRunningTime; 23 | + (NSString *)memoryInfo:(NSError * _Nullable __autoreleasing *)error; 24 | + (NSString *)requestsServed; 25 | + (void)addRequest; 26 | + (NSString *)criolloVersion; 27 | + (NSString *)bundleVersion; 28 | 29 | @end 30 | 31 | NS_ASSUME_NONNULL_END -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/QueryDBViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // QueryDBViewController.swift 3 | // AVSQLDebugger 4 | // 5 | // Created by Umesh 6 | // 7 | // 8 | 9 | import Criollo 10 | 11 | 12 | class QueryDBViewController: CRViewController { 13 | 14 | private var db: SQLiteDatabase! 15 | 16 | override func present(with request: CRRequest, response: CRResponse) -> String { 17 | 18 | let path = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true) 19 | let filePath = "\(path[0])/\(AVDebugger.sharedInstance.containerName).sqlite" 20 | 21 | let executeQuery = request.env["SCRIPT_NAME"] 22 | 23 | do { 24 | db = try SQLiteDatabase.open(path: filePath) 25 | 26 | #if DEBUG 27 | print("Successfully opened connection to database.") 28 | #endif 29 | 30 | } catch let err { 31 | print("Unable to open database. Verify that you created the directory described in the Getting Started section.\(err)") 32 | } 33 | 34 | do { 35 | if let res = try db.executeQuery(executeQuery) { 36 | self.vars["data"] = res.description 37 | } 38 | }catch let err { 39 | print("\(err)") 40 | } 41 | 42 | return super.present(with: request, response: response) 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/Resources/GetDBViewController.html: -------------------------------------------------------------------------------- 1 | {{data}} 2 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/Resources/GetTableDataViewController.html: -------------------------------------------------------------------------------- 1 | {{data}} 2 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/Resources/QueryDBViewController.html: -------------------------------------------------------------------------------- 1 | {{data}} 2 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/Resources/custom.css: -------------------------------------------------------------------------------- 1 | .padding-fifty { 2 | padding-top: 50px; 3 | } 4 | 5 | .padding-twenty { 6 | padding-top: 20px; 7 | } 8 | 9 | .display-none { 10 | display: none; 11 | } 12 | 13 | .list-group-item { 14 | word-break: break-all; 15 | } 16 | 17 | .list-group-item.selected { 18 | background: #dff0d8 !important; 19 | color: #3c763d !important; 20 | font-weight: bold; 21 | } 22 | 23 | #snackbar { 24 | visibility: hidden; 25 | min-width: 250px; 26 | margin-left: -125px; 27 | background-color: #5cb85c; 28 | color: #fff; 29 | text-align: center; 30 | border-radius: 2px; 31 | padding: 16px; 32 | position: fixed; 33 | z-index: 1; 34 | left: 50%; 35 | bottom: 30px; 36 | font-size: 17px; 37 | } 38 | 39 | #snackbar.show { 40 | visibility: visible; 41 | -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s; 42 | animation: fadein 0.5s, fadeout 0.5s 2.5s; 43 | } 44 | 45 | @-webkit-keyframes fadein { 46 | from {bottom: 0; opacity: 0;} 47 | to {bottom: 30px; opacity: 1;} 48 | } 49 | 50 | @keyframes fadein { 51 | from {bottom: 0; opacity: 0;} 52 | to {bottom: 30px; opacity: 1;} 53 | } 54 | 55 | @-webkit-keyframes fadeout { 56 | from {bottom: 30px; opacity: 1;} 57 | to {bottom: 0; opacity: 0;} 58 | } 59 | 60 | .col-sm-2 > .panel-heading-custom { 61 | background: #2BBA5E; 62 | color: #fff; 63 | } 64 | 65 | .col-sm-8 >.panel-heading-custom { 66 | background: #2BBA5E; 67 | color: #fff; 68 | } 69 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/Wrappers/AVDebugger+Servers.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AVDebugger+Helpers.swift 3 | // AVSQLDebugger 4 | // 5 | // Created by Umesh. 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import Criollo 11 | 12 | extension AVDebugger { 13 | /* 14 | * Server Status Listners 15 | */ 16 | internal func checkStatus() throws { 17 | var serverError:NSError? 18 | if (self.server.startListening(&serverError, portNumber: portNumber, interface: nil) ) { 19 | // Get server ip address 20 | let address = SystemInfoHelper.ipAddress() 21 | // Set the base url. This is only for logging 22 | guard let baseURL = URL(string: "http\(self.server.isSecure ? "s" :"")://\(address):\(portNumber)") else { throw ServerError.invalidBaseUrl(msg: "Base Url is failed to Creted") } 23 | 24 | print("------------------------------------------------------") 25 | print("🎉 Server is up and running on port: \(portNumber) 🎉") 26 | print("🎉 Copy and paste this url to your local browser. 🎉") 27 | print("🚀🚀🚀") 28 | print("\(baseURL)/index.html") 29 | print("🚀🚀🚀") 30 | print("------------------------------------------------------") 31 | 32 | } else { 33 | print("Failed to start HTTP server. \(serverError!.localizedDescription)") 34 | } 35 | } 36 | 37 | public func server(_ server: CRServer, didAccept connection: CRConnection) { 38 | self.delegate?.server(server, didAccept: connection) 39 | 40 | #if DEBUG 41 | print(" * Accepted connection from \(connection.remoteAddress):\(connection.remotePort)") 42 | #endif 43 | } 44 | 45 | public func server(_ server: CRServer, didClose connection: CRConnection) { 46 | self.delegate?.server(server, didClose: connection) 47 | 48 | #if DEBUG 49 | print(" * Disconnected \(connection.remoteAddress):\(connection.remotePort)") 50 | #endif 51 | } 52 | 53 | public func server(_ server: CRServer, didFinish request: CRRequest) { 54 | SystemInfoHelper.addRequest() 55 | self.delegate?.server(server, didFinish: request) 56 | } 57 | 58 | public func stopListingServer() { 59 | self.server.stopListening() 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/Wrappers/Model+Helpers.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Model+Helpers.swift 3 | // AVSQLDebugger 4 | // 5 | // Created by Umesh. 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | extension TableDataResponse.TableInfo: CustomStringConvertible { 12 | public var description: String { 13 | 14 | let returnStr = """ 15 | { 16 | "title":"\(title ?? "")", 17 | "isPrimary":\(isPrimary) 18 | } 19 | """ 20 | return returnStr 21 | } 22 | } 23 | 24 | extension TableDataResponse.ColumnData: CustomStringConvertible { 25 | public var description: String { 26 | 27 | let returnStr = """ 28 | { 29 | "dataType":"\(dataType ?? "")", 30 | "value": "\(value ?? "")" 31 | } 32 | """ 33 | return returnStr 34 | } 35 | } 36 | 37 | extension TableDataResponse: CustomStringConvertible { 38 | public var description: String { 39 | 40 | let returnStr = """ 41 | { 42 | "tableInfos":\(tableInfos.description), 43 | "isSuccessful":\(isSuccessful), 44 | "error": "\(error ?? "")", 45 | "rows": \(rows), 46 | "isEditable":\(isEditable), 47 | "isSelectQuery":\(isSelectQuery) 48 | } 49 | """ 50 | return returnStr 51 | } 52 | } 53 | 54 | extension Response: CustomStringConvertible { 55 | public var description: String { 56 | 57 | let returnStr = """ 58 | { 59 | "rows":\(rows), 60 | "columns":\(columns), 61 | "isSuccessful":\(isSuccessful), 62 | "dbVersion":\(dbVersion) 63 | } 64 | """ 65 | 66 | return returnStr 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/Wrappers/Model.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Model.swift 3 | // AVSQLDebugger 4 | // 5 | // Created by Umesh. 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct DataType { 12 | static let BOOLEAN = "boolean" 13 | static let INTEGER = "integer" 14 | static let REAL = "real" 15 | static let TEXT = "text" 16 | static let LONG = "long" 17 | static let FLOAT = "float" 18 | static let STRING_SET = "string_set" 19 | } 20 | 21 | struct TableDataResponse { 22 | 23 | var tableInfos = Array() 24 | var isSuccessful:Bool = false 25 | var rows = Array() 26 | var error:String? 27 | var isEditable:Bool = false 28 | var isSelectQuery:Bool = false 29 | 30 | struct TableInfo { 31 | public var title:String? 32 | public var isPrimary:Bool = false 33 | } 34 | 35 | struct ColumnData { 36 | public var dataType:String? 37 | public var value:Any? 38 | } 39 | } 40 | 41 | public struct Response { 42 | public var rows = Array() 43 | public var columns = Array() 44 | public var isSuccessful:Bool = false 45 | public var dbVersion:Int = 0 46 | public var error:String = "" 47 | } 48 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/Wrappers/ProtocolsReprsentable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ProtocolsReprsentable.swift 3 | // AVSQLDebugger 4 | // 5 | // Created by Umesh. 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import Criollo 11 | 12 | /* 13 | * Protocols for Server Status 14 | */ 15 | 16 | public protocol AVDebuggerProtocol:class { 17 | func server(_ server: CRServer, didAccept connection: CRConnection) 18 | func server(_ server: CRServer, didClose connection: CRConnection) 19 | func server(_ server: CRServer, didFinish request: CRRequest) 20 | } 21 | 22 | /* 23 | * Default Implementation for Protocols 24 | */ 25 | 26 | public extension AVDebuggerProtocol { 27 | func server(_ server: CRServer, didAccept connection: CRConnection) {} 28 | func server(_ server: CRServer, didClose connection: CRConnection) {} 29 | func server(_ server: CRServer, didFinish request: CRRequest) {} 30 | } 31 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/Wrappers/ServerError.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ServerError.swift 3 | // AVSQLDebugger 4 | // 5 | // Created by Umesh. 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /* 12 | * Error Handling for Server 13 | */ 14 | enum ServerError: Error { 15 | case invalidBaseUrl(msg: String) 16 | case failed(msg: String) 17 | case success 18 | } 19 | 20 | /* 21 | * SQLite Errors 22 | */ 23 | enum SQLiteError: Error { 24 | case openDatabase(message: String) 25 | case prepare(message: String) 26 | case step(message: String) 27 | case bind(message: String) 28 | } 29 | 30 | enum SQLiteStatementError: Error { 31 | case parseQuery, unknown, tableNotFound 32 | } 33 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Classes/Wrappers/String+Representable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // String+Representable.swift 3 | // AVSQLDebugger 4 | // 5 | // Created by Umesh 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | extension String { 12 | func extractTableNameFromQuery() -> [String] { 13 | if let regex = try? NSRegularExpression(pattern: "FROM\\s+(?:\\w+\\.)*(\\w+)($|\\s+[WHERE,JOIN,START\\s+WITH,ORDER\\s+BY,GROUP\\s+BY])", options: .caseInsensitive) 14 | { 15 | let string = self as NSString 16 | 17 | return regex.matches(in: self, options: [], range: NSRange(location: 0, length: string.length)).map { 18 | string.substring(with: $0.range).replacingOccurrences(of: "", with: "") 19 | } 20 | } 21 | return [] 22 | } 23 | 24 | func replace(string:String, replacement:String) -> String { 25 | return self.replacingOccurrences(of: string, with: replacement, options: NSString.CompareOptions.literal, range: nil) 26 | } 27 | 28 | func removeUnderScore() -> String { 29 | return self.replace(string: "_", replacement: "") 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebugger/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebuggerTests/AVSQLDebuggerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AVSQLDebuggerTests.swift 3 | // AVSQLDebuggerTests 4 | // 5 | // Created by Umesh 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import AVSQLDebugger 11 | 12 | class AVSQLDebuggerTests: XCTestCase { 13 | 14 | override func setUp() { 15 | // Put setup code here. This method is called before the invocation of each test method in the class. 16 | } 17 | 18 | override func tearDown() { 19 | // Put teardown code here. This method is called after the invocation of each test method in the class. 20 | } 21 | 22 | func testExample() { 23 | // This is an example of a functional test case. 24 | // Use XCTAssert and related functions to verify your tests produce the correct results. 25 | } 26 | 27 | func testPerformanceExample() { 28 | // This is an example of a performance test case. 29 | self.measure { 30 | // Put the code you want to measure the time of here. 31 | } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /AVSQLDebugger/AVSQLDebuggerTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Debug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umeshiscreative/AVSQLDebugger/4e60d6093d77169b2f144b4c38441c767b3bec09/Debug.png -------------------------------------------------------------------------------- /Example/Example/Account+CoreDataClass.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Account+CoreDataClass.swift 3 | // Example 4 | // 5 | // Created by Umesh 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | // 9 | 10 | import Foundation 11 | import CoreData 12 | 13 | @objc(Account) 14 | public class Account: NSManagedObject { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Example/Example/Account+CoreDataProperties.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Account+CoreDataProperties.swift 3 | // Example 4 | // 5 | // Created by Umesh 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | // 9 | 10 | import Foundation 11 | import CoreData 12 | 13 | 14 | extension Account { 15 | 16 | @nonobjc public class func fetchRequest() -> NSFetchRequest { 17 | return NSFetchRequest(entityName: "Account") 18 | } 19 | 20 | @NSManaged public var id: Int16 21 | @NSManaged public var accountName: String? 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Example/Example/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /Example/Example/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/Example/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Example/Example/Example.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _XCCurrentVersionName 6 | Example.xcdatamodel 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Example/Example.xcdatamodeld/Example.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Example/Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UIApplicationSceneManifest 24 | 25 | UIApplicationSupportsMultipleScenes 26 | 27 | UISceneConfigurations 28 | 29 | UIWindowSceneSessionRoleApplication 30 | 31 | 32 | UISceneConfigurationName 33 | Default Configuration 34 | UISceneDelegateClassName 35 | $(PRODUCT_MODULE_NAME).SceneDelegate 36 | UISceneStoryboardFile 37 | Main 38 | 39 | 40 | 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIMainStoryboardFile 45 | Main 46 | UIRequiredDeviceCapabilities 47 | 48 | armv7 49 | 50 | UISupportedInterfaceOrientations 51 | 52 | UIInterfaceOrientationPortrait 53 | UIInterfaceOrientationLandscapeLeft 54 | UIInterfaceOrientationLandscapeRight 55 | 56 | UISupportedInterfaceOrientations~ipad 57 | 58 | UIInterfaceOrientationPortrait 59 | UIInterfaceOrientationPortraitUpsideDown 60 | UIInterfaceOrientationLandscapeLeft 61 | UIInterfaceOrientationLandscapeRight 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /Example/Example/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // Example 4 | // 5 | // Created by Umesh. 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 12 | 13 | var window: UIWindow? 14 | 15 | 16 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 17 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 18 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 19 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 20 | guard let _ = (scene as? UIWindowScene) else { return } 21 | } 22 | 23 | func sceneDidDisconnect(_ scene: UIScene) { 24 | // Called as the scene is being released by the system. 25 | // This occurs shortly after the scene enters the background, or when its session is discarded. 26 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 27 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). 28 | } 29 | 30 | func sceneDidBecomeActive(_ scene: UIScene) { 31 | // Called when the scene has moved from an inactive state to an active state. 32 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 33 | } 34 | 35 | func sceneWillResignActive(_ scene: UIScene) { 36 | // Called when the scene will move from an active state to an inactive state. 37 | // This may occur due to temporary interruptions (ex. an incoming phone call). 38 | } 39 | 40 | func sceneWillEnterForeground(_ scene: UIScene) { 41 | // Called as the scene transitions from the background to the foreground. 42 | // Use this method to undo the changes made on entering the background. 43 | } 44 | 45 | func sceneDidEnterBackground(_ scene: UIScene) { 46 | // Called as the scene transitions from the foreground to the background. 47 | // Use this method to save data, release shared resources, and store enough scene-specific state information 48 | // to restore the scene back to its current state. 49 | 50 | // Save changes in the application's managed object context when the application transitions to the background. 51 | (UIApplication.shared.delegate as? AppDelegate)?.saveContext() 52 | } 53 | 54 | 55 | } 56 | 57 | -------------------------------------------------------------------------------- /Example/Example/User+CoreDataClass.swift: -------------------------------------------------------------------------------- 1 | // 2 | // User+CoreDataClass.swift 3 | // Example 4 | // 5 | // Created by Umesh. 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | // 9 | 10 | import Foundation 11 | import CoreData 12 | 13 | @objc(User) 14 | public class User: NSManagedObject { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Example/Example/User+CoreDataProperties.swift: -------------------------------------------------------------------------------- 1 | // 2 | // User+CoreDataProperties.swift 3 | // Example 4 | // 5 | // Created by Umesh. 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | // 9 | 10 | import Foundation 11 | import CoreData 12 | 13 | 14 | extension User { 15 | 16 | @nonobjc public class func fetchRequest() -> NSFetchRequest { 17 | return NSFetchRequest(entityName: "User") 18 | } 19 | 20 | @NSManaged public var id: Int16 21 | @NSManaged public var name: String? 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Example/Example/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Example 4 | // 5 | // Created by Umesh. 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CoreData 11 | 12 | enum CoreDataError : Error { 13 | case count(_ msg: String) 14 | case store(_ msg: String) 15 | } 16 | 17 | class ViewController: UIViewController { 18 | 19 | @IBOutlet weak var nameOutlet: UITextField! 20 | 21 | /// For main queue use only, simple rule is don't access it from any queue other than main!!! 22 | var managedContext: NSManagedObjectContext { return AppDelegate.shared.persistentContainer.viewContext } 23 | 24 | override func viewDidLoad() { 25 | super.viewDidLoad() 26 | // Do any additional setup after loading the view. 27 | } 28 | 29 | func saveItemInCoreData(_ name:String) throws { 30 | let entity = NSEntityDescription.entity(forEntityName: "User", in: managedContext)! 31 | let entityObject = NSManagedObject(entity: entity, insertInto: managedContext) as! User 32 | 33 | guard let ID:Int = getCount() else { throw CoreDataError.count("Count is not available") } 34 | let myId = ID 35 | entityObject.id = Int16(myId) 36 | entityObject.name = name 37 | 38 | do { 39 | try managedContext.save() 40 | } catch let error as NSError { 41 | throw CoreDataError.store("Could not save. \(error), \(error.userInfo)") 42 | } 43 | } 44 | 45 | func saveItemInAccountCoreData(_ name:String) throws { 46 | let entity = NSEntityDescription.entity(forEntityName: "Account", in: managedContext)! 47 | let entityObject = NSManagedObject(entity: entity, insertInto: managedContext) as! Account 48 | 49 | guard let ID:Int = getCount() else { throw CoreDataError.count("Count is not available") } 50 | let myId = ID 51 | entityObject.id = Int16(myId) 52 | entityObject.accountName = name 53 | 54 | do { 55 | try managedContext.save() 56 | } catch let error as NSError { 57 | throw CoreDataError.store("Could not save. \(error), \(error.userInfo)") 58 | } 59 | } 60 | 61 | func getCount() -> Int? { 62 | let feedDetailFetch = NSFetchRequest(entityName: "User") 63 | do { 64 | let feedDetails = try managedContext.fetch(feedDetailFetch) as? [User] 65 | 66 | guard let data = feedDetails, data.count > 0 else { 67 | return nil 68 | } 69 | return data.count 70 | } catch let error as NSError { 71 | print("Could not save. \(error), \(error.userInfo)") 72 | return nil 73 | } 74 | } 75 | 76 | @IBAction func SaveDB(_ sender: UIButton) { 77 | guard let text = nameOutlet.text else { return } 78 | do { 79 | try saveItemInCoreData(text) 80 | try saveItemInAccountCoreData(text) 81 | }catch let err { 82 | print(err) 83 | } 84 | 85 | } 86 | } 87 | 88 | -------------------------------------------------------------------------------- /Example/ExampleTests/ExampleTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ExampleTests.swift 3 | // ExampleTests 4 | // 5 | // Created by Umesh 6 | // Copyright © 2019 Umesh. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import Example 11 | 12 | class ExampleTests: XCTestCase { 13 | 14 | override func setUp() { 15 | // Put setup code here. This method is called before the invocation of each test method in the class. 16 | } 17 | 18 | override func tearDown() { 19 | // Put teardown code here. This method is called after the invocation of each test method in the class. 20 | } 21 | 22 | func testExample() { 23 | // This is an example of a functional test case. 24 | // Use XCTAssert and related functions to verify your tests produce the correct results. 25 | } 26 | 27 | func testPerformanceExample() { 28 | // This is an example of a performance test case. 29 | self.measure { 30 | // Put the code you want to measure the time of here. 31 | } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Example/ExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Umesh Verma 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | use_frameworks! 3 | platform :ios, '10.0' 4 | 5 | workspace 'AVSQLDebugger' 6 | 7 | $podSource = {:path => './'} 8 | 9 | target 'AVSQLDebugger' do 10 | project 'AVSQLDebugger/AVSQLDebugger.xcodeproj' 11 | pod 'Criollo', '~> 0.4’ 12 | end 13 | 14 | target 'Example' do 15 | 16 | project 'Example/Example.xcodeproj' 17 | 18 | pod 'AVSQLDebugger', $podSource 19 | 20 | target 'ExampleTests' do 21 | inherit! :search_paths 22 | # Pods for testing 23 | end 24 | end 25 | 26 | post_install do |installer| 27 | installer.pods_project.targets.each do |target| 28 | target.build_configurations.each do |config| 29 | config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = "" 30 | config.build_settings['CODE_SIGNING_REQUIRED'] = "NO" 31 | config.build_settings['CODE_SIGNING_ALLOWED'] = "NO" 32 | config.build_settings['ENABLE_BITCODE'] = "NO" 33 | config.build_settings['SWIFT_VERSION'] = "5.0" 34 | config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = "10.0" 35 | end 36 | end 37 | end 38 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AVSQLDebugger (1.0.1): 3 | - Criollo (~> 0.4) 4 | - CocoaAsyncSocket (7.6.3) 5 | - Criollo (0.5.5): 6 | - CocoaAsyncSocket (~> 7.6) 7 | 8 | DEPENDENCIES: 9 | - AVSQLDebugger (from `./`) 10 | - Criollo (~> 0.4) 11 | 12 | SPEC REPOS: 13 | https://github.com/cocoapods/specs.git: 14 | - CocoaAsyncSocket 15 | - Criollo 16 | 17 | EXTERNAL SOURCES: 18 | AVSQLDebugger: 19 | :path: "./" 20 | 21 | SPEC CHECKSUMS: 22 | AVSQLDebugger: 93112c18fd40c1d9572d9a6c219dde462305c532 23 | CocoaAsyncSocket: eafaa68a7e0ec99ead0a7b35015e0bf25d2c8987 24 | Criollo: 617173837c296ca4248b0b058f36ce9b91e5c25b 25 | 26 | PODFILE CHECKSUM: 60e83a25011ac8e7b80a8a09e4fd44305d036425 27 | 28 | COCOAPODS: 1.7.5 29 | -------------------------------------------------------------------------------- /Pods/CocoaAsyncSocket/LICENSE.txt: -------------------------------------------------------------------------------- 1 | This library is in the public domain. 2 | However, not all organizations are allowed to use such a license. 3 | For example, Germany doesn't recognize the Public Domain and one is not allowed to use libraries under such license (or similar). 4 | 5 | Thus, the library is now dual licensed, 6 | and one is allowed to choose which license they would like to use. 7 | 8 | ################################################## 9 | License Option #1 : 10 | ################################################## 11 | 12 | Public Domain 13 | 14 | ################################################## 15 | License Option #2 : 16 | ################################################## 17 | 18 | Software License Agreement (BSD License) 19 | 20 | Copyright (c) 2017, Deusty, LLC 21 | All rights reserved. 22 | 23 | Redistribution and use of this software in source and binary forms, 24 | with or without modification, are permitted provided that the following conditions are met: 25 | 26 | * Redistributions of source code must retain the above 27 | copyright notice, this list of conditions and the 28 | following disclaimer. 29 | 30 | * Neither the name of Deusty LLC nor the names of its 31 | contributors may be used to endorse or promote products 32 | derived from this software without specific prior 33 | written permission of Deusty LLC. 34 | 35 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Criollo.h: -------------------------------------------------------------------------------- 1 | // 2 | // Criollo.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 28/04/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | 13 | #import 14 | #import 15 | #import 16 | #import 17 | #import 18 | #import 19 | #import 20 | #import 21 | #import 22 | 23 | #import 24 | #import 25 | 26 | #import 27 | #import 28 | #import 29 | #import 30 | 31 | #import 32 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRConnection.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRConnection.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/23/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRTypes.h" 10 | 11 | @class CRConnection, GCDAsyncSocket, CRServer, CRRequest, CRResponse; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | @protocol CRConnectionDelegate 15 | 16 | - (void)connection:(CRConnection *)connection didReceiveRequest:(CRRequest *)request response:(CRResponse *)response; 17 | - (void)connection:(CRConnection *)connection didFinishRequest:(CRRequest *)request response:(CRResponse *)response; 18 | 19 | @end 20 | 21 | @interface CRConnection : NSObject 22 | 23 | @property (nonatomic, weak, nullable) id delegate; 24 | 25 | @property (nonatomic, readonly) NSString* remoteAddress; 26 | @property (nonatomic, readonly) NSUInteger remotePort; 27 | @property (nonatomic, readonly) NSString* localAddress; 28 | @property (nonatomic, readonly) NSUInteger localPort; 29 | 30 | @end 31 | NS_ASSUME_NONNULL_END 32 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRConnection_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRConnection_Internal.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 11/20/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRConnection.h" 10 | 11 | @class GCDAsyncSocket, CRServer, CRRequest; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface CRConnection () 16 | 17 | @property (nonatomic, strong, nullable) GCDAsyncSocket* socket; 18 | @property (nonatomic, weak) CRServer* server; 19 | 20 | @property (nonatomic, strong, nullable) NSMutableArray * requests; 21 | @property (nonatomic, weak, nullable) CRRequest* currentRequest; 22 | 23 | @property (nonatomic, readonly, strong, nullable) dispatch_queue_t isolationQueue; 24 | 25 | @property (nonatomic, readonly) BOOL willDisconnect; 26 | 27 | + (NSData *)CRLFData; 28 | + (NSData *)CRLFCRLFData; 29 | 30 | - (instancetype)initWithSocket:(GCDAsyncSocket * _Nullable)socket server:(CRServer * _Nullable)server NS_DESIGNATED_INITIALIZER; 31 | 32 | - (CRResponse *)responseWithHTTPStatusCode:(NSUInteger)HTTPStatusCode; 33 | - (CRResponse *)responseWithHTTPStatusCode:(NSUInteger)HTTPStatusCode description:(NSString * _Nullable)description; 34 | - (CRResponse *)responseWithHTTPStatusCode:(NSUInteger)HTTPStatusCode description:(NSString * _Nullable)description version:(CRHTTPVersion)version; 35 | 36 | - (void)startReading; 37 | - (void)didReceiveCompleteRequestHeaders; 38 | - (void)didReceiveRequestBodyData:(NSData *)data; 39 | - (void)didReceiveCompleteRequest; 40 | 41 | - (void)sendDataToSocket:(NSData *)data forRequest:(CRRequest *)request; 42 | - (void)didFinishResponseForRequest:(CRRequest *)request; 43 | 44 | @end 45 | 46 | NS_ASSUME_NONNULL_END 47 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRMessage.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRMessage.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 29/04/15. 6 | // 7 | // 8 | 9 | #import "CRTypes.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | FOUNDATION_EXTERN NSString * NSStringFromCRHTTPVersion(CRHTTPVersion version); 14 | FOUNDATION_EXTERN CRHTTPVersion CRHTTPVersionMake(NSString * versionSpec); 15 | 16 | FOUNDATION_EXTERN NSString * NSStringFromCRHTTPMethod(CRHTTPMethod method); 17 | FOUNDATION_EXTERN CRHTTPMethod CRHTTPMethodMake(NSString * methodSpec); 18 | 19 | @interface CRMessage : NSObject 20 | 21 | @property (nonatomic, readonly) CRHTTPVersion version; 22 | @property (nonatomic, readonly) NSDictionary* allHTTPHeaderFields; 23 | 24 | @property (nonatomic, copy, nullable) NSData* bodyData; 25 | 26 | - (nullable NSString *)valueForHTTPHeaderField:(NSString *)HTTPHeaderField; 27 | 28 | @end 29 | 30 | NS_ASSUME_NONNULL_END 31 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRMessage_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRMessage_Internal.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 11/20/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRMessage.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | @interface CRMessage () 13 | 14 | @property (nonatomic, readonly) NSData* serializedData; 15 | @property (nonatomic, strong) id message; 16 | @property (nonatomic, readonly) BOOL headersComplete; 17 | 18 | + (NSArray*)acceptedHTTPMethods; 19 | 20 | @end 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRMimeTypeHelper.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRMimeTypeHelper.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 2/11/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRTypes.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | @interface CRMimeTypeHelper : NSObject 13 | 14 | + (instancetype)sharedHelper; 15 | 16 | - (nullable NSString *)mimeTypeForExtension:(NSString *)extension; 17 | - (void)setMimeType:(NSString *)mimeType forExtension:(NSString *)extension; 18 | 19 | - (NSString *)mimeTypeForFileAtPath:(NSString *)path; 20 | 21 | @end 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRMimeTypeHelper.m: -------------------------------------------------------------------------------- 1 | // 2 | // CRMimeTypeHelper.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 2/11/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRMimeTypeHelper.h" 10 | #if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR 11 | #import 12 | #else 13 | #import 14 | #endif 15 | 16 | NS_ASSUME_NONNULL_BEGIN 17 | @interface CRMimeTypeHelper () 18 | 19 | @property (nonatomic, strong, readonly) NSMutableDictionary *mimeTypes; 20 | @property (nonatomic, strong, readonly) dispatch_queue_t isolationQueue; 21 | 22 | @end 23 | NS_ASSUME_NONNULL_END 24 | 25 | @implementation CRMimeTypeHelper 26 | 27 | static const CRMimeTypeHelper *sharedHelper; 28 | 29 | + (void)initialize { 30 | sharedHelper = [[CRMimeTypeHelper alloc] init]; 31 | } 32 | 33 | + (instancetype)sharedHelper { 34 | return (CRMimeTypeHelper *)sharedHelper; 35 | } 36 | 37 | - (instancetype)init { 38 | self = [super init]; 39 | if ( self != nil ) { 40 | _mimeTypes = [NSMutableDictionary dictionary]; 41 | _isolationQueue = dispatch_queue_create([[NSStringFromClass(self.class) stringByAppendingPathExtension:@"IsolationQueue"] cStringUsingEncoding:NSASCIIStringEncoding], DISPATCH_QUEUE_SERIAL); 42 | dispatch_set_target_queue(_isolationQueue, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0)); 43 | } 44 | return self; 45 | } 46 | 47 | - (NSString *)mimeTypeForExtension:(NSString *)extension { 48 | return self.mimeTypes[extension]; 49 | } 50 | 51 | - (void)setMimeType:(NSString *)mimeType forExtension:(NSString *)extension { 52 | if ( mimeType != nil ) { 53 | dispatch_sync(self.isolationQueue, ^{ 54 | self.mimeTypes[extension] = mimeType; 55 | }); 56 | } 57 | } 58 | 59 | - (NSString *)mimeTypeForFileAtPath:(NSString *)path { 60 | 61 | NSString *fileExtension = path.pathExtension; 62 | NSString *contentType = [self mimeTypeForExtension:fileExtension]; 63 | 64 | if ( contentType.length == 0 ) { 65 | 66 | CFStringRef UTI = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, (__bridge CFStringRef)fileExtension, NULL); 67 | contentType = (__bridge_transfer NSString *)UTTypeCopyPreferredTagWithClass(UTI, kUTTagClassMIMEType); 68 | 69 | if ( contentType.length == 0 ) { 70 | if ( UTTypeConformsTo(UTI, kUTTypeText) ) { 71 | contentType = @"text/plain; charset=utf-8"; 72 | } else if ( UTTypeConformsTo(UTI, kUTTypeXMLPropertyList) ) { 73 | contentType = @"application/xml; charset=utf-8"; 74 | } else if ( UTTypeConformsTo(UTI,kUTTypeSourceCode) ) { 75 | contentType = @"text/plain; charset=utf-8"; 76 | } else { 77 | contentType = @"application/octet-stream; charset=binary"; 78 | } 79 | } else if ( UTTypeConformsTo(UTI, kUTTypeText) || UTTypeConformsTo(UTI, kUTTypeSourceCode) ) { 80 | contentType = [contentType stringByAppendingString:@"; charset=utf-8"]; 81 | } 82 | 83 | CFRelease(UTI); 84 | 85 | if ( contentType.length == 0 ) { 86 | contentType = @"application/octet-stream; charset=binary"; 87 | } 88 | 89 | [self setMimeType:contentType forExtension:fileExtension]; 90 | 91 | } 92 | 93 | return contentType; 94 | } 95 | 96 | 97 | @end 98 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRRequest.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 3/30/14. 6 | // Copyright (c) 2014 Catalin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRMessage.h" 10 | 11 | // Mime types of the requests we support body parsing for 12 | #define CRRequestTypeJSON @"application/json" 13 | #define CRRequestTypeURLEncoded @"application/x-www-form-urlencoded" 14 | #define CRRequestTypeMultipart @"multipart/form-data" 15 | 16 | // Errors 17 | #define CRRequestErrorDomain @"CRRequestErrorDomain" 18 | //#define CRErrorRequestMalformedRequest 1001 19 | //#define CRErrorRequestUnsupportedMethod 1002 20 | #define CRRequestErrorMalformedBody 3001 21 | #define CRRequestFileWriteError 3010 22 | 23 | @class CRResponse, CRUploadedFile, CRConnection, CRRequestRange; 24 | 25 | NS_ASSUME_NONNULL_BEGIN 26 | 27 | @interface CRRequest : CRMessage 28 | 29 | @property (nonatomic, weak, nullable) CRConnection *connection; 30 | @property (nonatomic, strong, nullable) CRResponse * response; 31 | 32 | @property (nonatomic, readonly, strong) NSURL * URL; 33 | @property (nonatomic, readonly) CRHTTPMethod method; 34 | 35 | @property (nonatomic, readonly, strong) NSDictionary * env; 36 | @property (nonatomic, readonly, strong) NSDictionary * query; 37 | @property (nonatomic, readonly, strong, nullable) NSDictionary * cookies; 38 | @property (nonatomic, readonly, strong, nullable) id body; 39 | @property (nonatomic, readonly, strong, nullable) NSDictionary * files; 40 | 41 | @property (nonatomic, readonly, nullable) CRRequestRange * range; 42 | 43 | @end 44 | 45 | NS_ASSUME_NONNULL_END 46 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRRequestRange.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRRequestRange.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 06/03/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRTypes.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | @interface CRRequestByteRange : NSObject 13 | 14 | @property (nonatomic, readonly, nullable) NSString *firstBytePos; 15 | @property (nonatomic, readonly, nullable) NSString *lastBytePos; 16 | 17 | - (NSRange)dataRangeForFileSize:(NSUInteger)fileSize; 18 | - (BOOL)isSatisfiableForFileSize:(NSUInteger)fileSize; 19 | 20 | - (NSString *)contentRangeSpecForFileSize:(NSUInteger)fileSize; 21 | - (NSString *)contentLengthSpecForFileSize:(NSUInteger)fileSize; 22 | 23 | @end 24 | 25 | @interface CRRequestRange : NSObject 26 | 27 | @property (nonatomic, readonly, strong) NSArray *byteRangeSet; 28 | @property (nonatomic, readonly, strong) NSString *bytesUnit; 29 | 30 | + (instancetype)reuestRangeWithRangesSpecifier:(NSString *)rangesSpecifier; 31 | + (NSString *)acceptRangesSpec; 32 | 33 | - (BOOL)isSatisfiableForFileSize:(NSUInteger)fileSize; 34 | 35 | @end 36 | NS_ASSUME_NONNULL_END 37 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRRequestRange_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRRequestRange_Internal.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 06/03/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRRequestRange.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | @interface CRRequestByteRange () 13 | 14 | - (instancetype)initWithByteRangeSpec:(NSString *)byteRangeSpec NS_DESIGNATED_INITIALIZER; 15 | 16 | @end 17 | 18 | @interface CRRequestRange () 19 | 20 | + (NSArray *)acceptedRangeUnits; 21 | 22 | - (instancetype)initWithRangesSpecifier:(NSString *)rangesSpecifier NS_DESIGNATED_INITIALIZER; 23 | 24 | @end 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRRequest_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRRequest_Internal.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 11/20/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRRequest.h" 10 | 11 | #define CRRequestHeaderNameSeparator @":" 12 | #define CRRequestHeaderSeparator @";" 13 | #define CRRequestHeaderArraySeparator @"," 14 | #define CRRequestKeySeparator @"&" 15 | #define CRRequestValueSeparator @"=" 16 | #define CRRequestBoundaryParameter @"boundary" 17 | #define CRRequestBoundaryPrefix @"--" 18 | 19 | NS_ASSUME_NONNULL_BEGIN 20 | 21 | @interface CRRequest () 22 | 23 | @property (nonatomic, readwrite, strong) NSURL * URL; 24 | @property (nonatomic, readwrite) CRHTTPMethod method; 25 | @property (nonatomic, readwrite, strong) NSDictionary * env; 26 | @property (nonatomic, readwrite, strong) NSDictionary * query; 27 | @property (nonatomic, readwrite, strong, nullable) NSDictionary * cookies; 28 | @property (nonatomic, readwrite, nullable) CRRequestRange * range; 29 | 30 | @property (nonatomic, readonly) BOOL shouldCloseConnection; 31 | 32 | @property (nonatomic, strong, nullable) NSMutableData * bufferedBodyData; 33 | @property (nonatomic, strong, nullable) NSMutableData * bufferedResponseData; 34 | 35 | @property (nonatomic, readonly, nullable) NSString * multipartBoundary; 36 | @property (nonatomic, readonly) NSData * multipartBoundaryPrefixData; 37 | @property (nonatomic, readonly, nullable) NSString * multipartBoundaryPrefixedString; 38 | @property (nonatomic, readonly, nullable) NSData * multipartBoundaryPrefixedData; 39 | 40 | - (instancetype)initWithMethod:(CRHTTPMethod)method URL:(NSURL * _Nullable)URL version:(CRHTTPVersion)version; 41 | - (instancetype)initWithMethod:(CRHTTPMethod)method URL:(NSURL * _Nullable)URL version:(CRHTTPVersion)version connection:(CRConnection* _Nullable) connection; 42 | - (instancetype)initWithMethod:(CRHTTPMethod)method URL:(NSURL * _Nullable)URL version:(CRHTTPVersion)version connection:(CRConnection* _Nullable) connection env:(NSDictionary* _Nullable)env NS_DESIGNATED_INITIALIZER; 43 | 44 | - (BOOL)appendData:(NSData *)data; 45 | - (void)bufferBodyData:(NSData *)data; 46 | - (void)bufferResponseData:(NSData *)data; 47 | 48 | - (void)clearBodyParsingTargets; 49 | 50 | - (BOOL)appendBodyData:(NSData *)data forKey:(NSString *)key; 51 | - (BOOL)setFileHeader:(NSDictionary *)headerFields forKey:(NSString *)key; 52 | - (BOOL)appendFileData:(NSData *)data forKey:(NSString *)key; 53 | 54 | - (void)parseQueryString; 55 | - (void)parseCookiesHeader; 56 | - (void)parseRangeHeader; 57 | 58 | - (void)setEnv:(NSString *)obj forKey:(NSString *)key; 59 | 60 | - (void)setQuery:(NSString *)obj forKey:(NSString *)key; 61 | 62 | - (BOOL)parseJSONBodyData:(NSError * _Nullable __autoreleasing * _Nullable)error; 63 | - (BOOL)parseMIMEBodyDataChunk:(NSData *)data error:(NSError *__autoreleasing _Nullable * _Nullable)error; 64 | - (BOOL)parseMultipartBodyDataChunk:(NSData *)data error:(NSError * _Nullable __autoreleasing * _Nullable)error; 65 | - (BOOL)parseURLEncodedBodyData:(NSError * _Nullable __autoreleasing * _Nullable)error; 66 | - (BOOL)parseBufferedBodyData:(NSError * _Nullable __autoreleasing * _Nullable)error; 67 | 68 | @end 69 | 70 | NS_ASSUME_NONNULL_END 71 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRResponse.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 3/30/14. 6 | // Copyright (c) 2014 Catalin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRMessage.h" 10 | 11 | // Initial size of the response body data object 12 | #define CRResponseDataInitialCapacity (1 * 64 * 1024) 13 | 14 | @class CRRequest, CRConnection; 15 | 16 | @interface CRResponse : CRMessage 17 | 18 | NS_ASSUME_NONNULL_BEGIN 19 | @property (nonatomic, weak, nullable) CRConnection *connection; 20 | @property (nonatomic, weak, nullable) CRRequest *request; 21 | 22 | @property (nonatomic, readonly) NSUInteger statusCode; 23 | @property (nonatomic, strong, readonly, nullable) NSString* statusDescription; 24 | 25 | - (void)setStatusCode:(NSUInteger)statusCode description:(NSString * _Nullable)description; 26 | 27 | - (void)setAllHTTPHeaderFields:(NSDictionary *)headerFields; 28 | - (void)addValue:(NSString *)value forHTTPHeaderField:(NSString *)HTTPHeaderField; 29 | - (void)setValue:(NSString *)value forHTTPHeaderField:(NSString *)HTTPHeaderField; 30 | 31 | - (void)setCookie:(NSHTTPCookie *)cookie; 32 | - (NSHTTPCookie *)setCookie:(NSString *)name value:(NSString *)value path:(NSString *)path expires:(NSDate * _Nullable)expires domain:(NSString * _Nullable)domain secure:(BOOL)secure; 33 | 34 | - (NSData *)serializeOutputObject:(id)obj error:(NSError * _Nullable __autoreleasing * _Nullable)error; 35 | 36 | - (void)write:(id)obj; 37 | - (void)writeData:(NSData *)data; 38 | - (void)writeString:(NSString *)string; 39 | - (void)writeFormat:(NSString *)format, ...; 40 | - (void)writeFormat:(NSString *)format args:(va_list)args; 41 | 42 | - (void)send:(id)obj; 43 | - (void)sendData:(NSData *)data; 44 | - (void)sendString:(NSString *)string; 45 | - (void)sendFormat:(NSString *)format, ...; 46 | - (void)sendFormat:(NSString *)format args:(va_list)args; 47 | 48 | - (void)redirectToURL:(NSURL *)URL; 49 | - (void)redirectToURL:(NSURL *)URL statusCode:(NSUInteger)statusCode; 50 | - (void)redirectToURL:(NSURL *)URL statusCode:(NSUInteger)statusCode finish:(BOOL)finish; 51 | 52 | - (void)redirectToLocation:(NSString *)location; 53 | - (void)redirectToLocation:(NSString *)location statusCode:(NSUInteger)statusCode; 54 | - (void)redirectToLocation:(NSString *)location statusCode:(NSUInteger)statusCode finish:(BOOL)finish; 55 | 56 | - (void)finish; 57 | 58 | @end 59 | 60 | NS_ASSUME_NONNULL_END 61 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRResponse_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRResponse_Internal.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 11/20/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRResponse.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | @interface CRResponse () 13 | 14 | @property (nonatomic, assign) NSUInteger proposedStatusCode; 15 | @property (nonatomic, strong, nullable) NSString* proposedStatusDescription; 16 | 17 | @property (nonatomic, assign) BOOL alreadySentHeaders; 18 | @property (nonatomic, assign) BOOL alreadyBuiltHeaders; 19 | @property (nonatomic, readonly) BOOL finished; 20 | @property (nonatomic, readonly) BOOL hasWrittenBodyData; 21 | 22 | - (instancetype)initWithConnection:(CRConnection *)connection HTTPStatusCode:(NSUInteger)HTTPStatusCode; 23 | - (instancetype)initWithConnection:(CRConnection *)connection HTTPStatusCode:(NSUInteger)HTTPStatusCode description:(NSString * _Nullable)description; 24 | - (instancetype)initWithConnection:(CRConnection *)connection HTTPStatusCode:(NSUInteger)HTTPStatusCode description:(NSString * _Nullable)description version:(CRHTTPVersion)version NS_DESIGNATED_INITIALIZER; 25 | 26 | - (void)writeData:(NSData *)data finish:(BOOL)flag; 27 | 28 | - (void)buildStatusLine; 29 | - (void)buildHeaders; 30 | 31 | @end 32 | NS_ASSUME_NONNULL_END 33 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRServer.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRServer.h 3 | // Criollo 4 | // 5 | // Created by Catalin Stan on 7/24/15. 6 | // Copyright (c) 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRTypes.h" 10 | #import "CRRouter.h" 11 | 12 | #define CRServerErrorDomain @"CRServerErrorDomain" 13 | #define CRServerSocketError 2001 14 | 15 | @class CRServer, CRServerConfiguration, GCDAsyncSocket, CRConnection, CRRequest, CRResponse, CRRoute; 16 | 17 | NS_ASSUME_NONNULL_BEGIN 18 | 19 | @protocol CRServerDelegate 20 | 21 | @optional 22 | 23 | - (void)serverWillStartListening:(CRServer *)server; 24 | - (void)serverDidStartListening:(CRServer *)server; 25 | 26 | - (void)serverWillStopListening:(CRServer *)server; 27 | - (void)serverDidStopListening:(CRServer *)server; 28 | 29 | - (void)server:(CRServer *)server didAcceptConnection:(CRConnection *)connection; 30 | - (void)server:(CRServer *)server didCloseConnection:(CRConnection *)connection; 31 | 32 | - (void)server:(CRServer *)server didReceiveRequest:(CRRequest *)request; 33 | - (void)server:(CRServer *)server didFinishRequest:(CRRequest *)request; 34 | 35 | @end 36 | 37 | @interface CRServer : CRRouter 38 | 39 | @property (nonatomic, weak, nullable) id delegate; 40 | @property (nonatomic, strong, nullable) dispatch_queue_t delegateQueue; 41 | 42 | - (instancetype)initWithDelegate:(id _Nullable)delegate; 43 | - (instancetype)initWithDelegate:(id _Nullable)delegate delegateQueue:(dispatch_queue_t _Nullable)delegateQueue NS_DESIGNATED_INITIALIZER; 44 | 45 | - (BOOL)startListening; 46 | - (BOOL)startListening:(NSError * _Nullable __autoreleasing * _Nullable)error; 47 | - (BOOL)startListening:(NSError * _Nullable __autoreleasing * _Nullable)error portNumber:(NSUInteger)portNumber; 48 | - (BOOL)startListening:(NSError * _Nullable __autoreleasing * _Nullable)error portNumber:(NSUInteger)portNumber interface:(NSString * _Nullable)interface; 49 | 50 | - (void)stopListening; 51 | - (void)closeAllConnections:(dispatch_block_t _Nullable)completion; 52 | 53 | @end 54 | 55 | NS_ASSUME_NONNULL_END 56 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRServerConfiguration.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRServerConfiguration.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/25/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | @interface CRServerConfiguration : NSObject 13 | 14 | @property (nonatomic, strong) NSString* CRServerInterface; 15 | @property (nonatomic, assign) NSUInteger CRServerPort; 16 | 17 | @property (nonatomic, assign) NSUInteger CRConnectionReadTimeout; 18 | @property (nonatomic, assign) NSUInteger CRConnectionWriteTimeout; 19 | 20 | @property (nonatomic, assign) NSUInteger CRConnectionKeepAliveTimeout; 21 | @property (nonatomic, assign) NSUInteger CRConnectionMaxKeepAliveConnections; 22 | 23 | - (void)readConfiguration; 24 | 25 | @end 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRServer_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRServer_Internal.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 11/20/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRServer.h" 10 | 11 | @class CRConnection; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | @interface CRServer () 15 | 16 | @property (nonatomic, strong) CRServerConfiguration * configuration; 17 | @property (nonatomic, strong) NSMutableArray * connections; 18 | 19 | - (void)didCloseConnection:(CRConnection *)connection; 20 | 21 | @end 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRStaticDirectoryManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRStaticDirectoryManager.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 2/10/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRTypes.h" 10 | 11 | @interface CRStaticDirectoryManager : NSObject 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @property (nonatomic, readonly, strong) NSString * directoryPath; 16 | @property (nonatomic, readonly, copy) CRRouteBlock routeBlock; 17 | 18 | @property (nonatomic, readonly) BOOL shouldCacheFiles; 19 | @property (nonatomic, readonly) BOOL shouldGenerateDirectoryIndex; 20 | @property (nonatomic, readonly) BOOL shouldShowHiddenFilesInDirectoryIndex; 21 | @property (nonatomic, readonly) BOOL shouldFollowSymLinks; 22 | 23 | + (instancetype)managerWithDirectoryAtPath:(NSString *)directoryPath prefix:(NSString *)prefix; 24 | + (instancetype)managerWithDirectoryAtPath:(NSString *)directoryPath prefix:(NSString *)prefix options:(CRStaticDirectoryServingOptions)options; 25 | 26 | - (instancetype)initWithDirectoryAtPath:(NSString *)directoryPath prefix:(NSString *)prefix; 27 | - (instancetype)initWithDirectoryAtPath:(NSString *)directoryPath prefix:(NSString *)prefix options:(CRStaticDirectoryServingOptions)options NS_DESIGNATED_INITIALIZER; 28 | 29 | NS_ASSUME_NONNULL_END 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRStaticFileManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRStaticFileManager.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/03/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRTypes.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | FOUNDATION_EXPORT NSString * NSStringFromCRStaticFileContentDisposition(CRStaticFileContentDisposition contentDisposition); 14 | FOUNDATION_EXPORT CRStaticFileContentDisposition CRStaticFileContentDispositionMake(NSString * contentDispositionName); 15 | 16 | @interface CRStaticFileManager : NSObject 17 | 18 | @property (nonatomic, readonly) NSString * filePath; 19 | @property (nonatomic, readonly) NSDictionary * attributes; 20 | @property (nonatomic, readonly, strong, nullable) NSError* attributesError; 21 | @property (nonatomic, readonly, copy) CRRouteBlock routeBlock; 22 | 23 | @property (nonatomic, readonly) BOOL shouldCache; 24 | @property (nonatomic, readonly) BOOL shouldFollowSymLinks; 25 | 26 | @property (nonatomic, strong) NSString* fileName; 27 | @property (nonatomic, strong) NSString* contentType; 28 | @property (nonatomic) CRStaticFileContentDisposition contentDisposition; 29 | 30 | + (instancetype)managerWithFileAtPath:(NSString *)filePath; 31 | + (instancetype)managerWithFileAtPath:(NSString *)filePath options:(CRStaticFileServingOptions)options; 32 | + (instancetype)managerWithFileAtPath:(NSString *)filePath options:(CRStaticFileServingOptions)options fileName:(NSString * _Nullable)fileName; 33 | + (instancetype)managerWithFileAtPath:(NSString *)filePath options:(CRStaticFileServingOptions)options fileName:(NSString * _Nullable)fileName contentType:(NSString * _Nullable)contentType; 34 | + (instancetype)managerWithFileAtPath:(NSString *)filePath options:(CRStaticFileServingOptions)options fileName:(NSString * _Nullable)fileName contentType:(NSString * _Nullable)contentType contentDisposition:(CRStaticFileContentDisposition)contentDisposition; 35 | + (instancetype)managerWithFileAtPath:(NSString *)filePath options:(CRStaticFileServingOptions)options fileName:(NSString * _Nullable)fileName contentType:(NSString * _Nullable)contentType contentDisposition:(CRStaticFileContentDisposition)contentDisposition attributes:(NSDictionary * _Nullable)attributes; 36 | 37 | - (instancetype)initWithFileAtPath:(NSString *)filePath; 38 | - (instancetype)initWithFileAtPath:(NSString *)filePath options:(CRStaticFileServingOptions)options; 39 | - (instancetype)initWithFileAtPath:(NSString *)filePath options:(CRStaticFileServingOptions)options fileName:(NSString * _Nullable)fileName; 40 | - (instancetype)initWithFileAtPath:(NSString *)filePath options:(CRStaticFileServingOptions)options fileName:(NSString * _Nullable)fileName contentType:(NSString * _Nullable)contentType; 41 | - (instancetype)initWithFileAtPath:(NSString *)filePath options:(CRStaticFileServingOptions)options fileName:(NSString * _Nullable)fileName contentType:(NSString * _Nullable)contentType contentDisposition:(CRStaticFileContentDisposition)contentDisposition; 42 | - (instancetype)initWithFileAtPath:(NSString *)filePath options:(CRStaticFileServingOptions)options fileName:(NSString * _Nullable)fileName contentType:(NSString * _Nullable)contentType contentDisposition:(CRStaticFileContentDisposition)contentDisposition attributes:(NSDictionary * _Nullable)attributes; 43 | 44 | NS_ASSUME_NONNULL_END 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRUploadedFile.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRUploadedFile.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 1/14/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface CRUploadedFile : NSObject 12 | 13 | @property (nonatomic, strong) NSString * name; 14 | @property (nonatomic, strong) NSURL * temporaryFileURL; 15 | @property (nonatomic, strong, nullable) NSDictionary * attributes; 16 | @property (nonatomic, strong, nullable) NSString * mimeType; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/CRUploadedFile_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRUploadedFile_Internal.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 19/10/2016. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRUploadedFile.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface CRUploadedFile () 14 | 15 | - (instancetype)initWithName:(NSString *)name NS_DESIGNATED_INITIALIZER; 16 | 17 | - (void)fetchAttributes; 18 | - (void)fetchMimeType; 19 | 20 | - (void)appendData:(NSData *)data; 21 | - (void)finishWriting; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Extensions/NSDate+RFC1123.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSDate+RFC1123.h 3 | // MKNetworkKit 4 | // 5 | // Created by Marcus Rohrmoser 6 | // http://blog.mro.name/2009/08/nsdateformatter-http-header/ 7 | // http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1 8 | 9 | // No obvious license attached 10 | 11 | /** 12 | Convert RFC1123 format dates 13 | 14 | */ 15 | 16 | @interface NSDate (RFC1123) 17 | 18 | /** 19 | * @name Convert a string to NSDate 20 | */ 21 | 22 | /** 23 | * Convert a RFC1123 'Full-Date' string 24 | * (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1) 25 | * into NSDate. 26 | * 27 | * @param value_ NSString* the string to convert 28 | * @return NSDate* 29 | */ 30 | +(NSDate*)dateFromRFC1123:(NSString*)value_; 31 | 32 | /** 33 | * @name Retrieve NSString value of the current date 34 | */ 35 | 36 | /** 37 | * Convert NSDate into a RFC1123 'Full-Date' string 38 | * (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1). 39 | * 40 | * @return NSString* 41 | */ 42 | @property (nonatomic, readonly, copy) NSString *rfc1123String; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Extensions/NSDate+RFC1123.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSDate+RFC1123.m 3 | // MKNetworkKit 4 | // 5 | // Originally created by Marcus Rohrmoser 6 | // http://blog.mro.name/2009/08/nsdateformatter-http-header/ 7 | // Updated with strptime methods by Bo98 8 | // 9 | // No obvious license attached 10 | 11 | #import "NSDate+RFC1123.h" 12 | #import 13 | #import 14 | 15 | @implementation NSDate (RFC1123) 16 | 17 | +(NSDate*)dateFromRFC1123:(NSString*)value_ 18 | { 19 | if(value_ == nil) 20 | return nil; 21 | 22 | const char *str = [value_ UTF8String]; 23 | const char *fmt; 24 | NSDate *retDate; 25 | char *ret; 26 | 27 | fmt = "%a, %d %b %Y %H:%M:%S %Z"; 28 | struct tm rfc1123timeinfo; 29 | memset(&rfc1123timeinfo, 0, sizeof(rfc1123timeinfo)); 30 | ret = strptime_l(str, fmt, &rfc1123timeinfo, NULL); 31 | if (ret) { 32 | time_t rfc1123time = mktime(&rfc1123timeinfo); 33 | retDate = [NSDate dateWithTimeIntervalSince1970:rfc1123time]; 34 | if (retDate != nil) 35 | return retDate; 36 | } 37 | 38 | 39 | fmt = "%A, %d-%b-%y %H:%M:%S %Z"; 40 | struct tm rfc850timeinfo; 41 | memset(&rfc850timeinfo, 0, sizeof(rfc850timeinfo)); 42 | ret = strptime_l(str, fmt, &rfc850timeinfo, NULL); 43 | if (ret) { 44 | time_t rfc850time = mktime(&rfc850timeinfo); 45 | retDate = [NSDate dateWithTimeIntervalSince1970:rfc850time]; 46 | if (retDate != nil) 47 | return retDate; 48 | } 49 | 50 | fmt = "%a %b %e %H:%M:%S %Y"; 51 | struct tm asctimeinfo; 52 | memset(&asctimeinfo, 0, sizeof(asctimeinfo)); 53 | ret = strptime_l(str, fmt, &asctimeinfo, NULL); 54 | if (ret) { 55 | time_t asctime = mktime(&asctimeinfo); 56 | return [NSDate dateWithTimeIntervalSince1970:asctime]; 57 | } 58 | 59 | return nil; 60 | } 61 | 62 | -(NSString*)rfc1123String 63 | { 64 | time_t date = (time_t)[self timeIntervalSince1970]; 65 | struct tm timeinfo; 66 | gmtime_r(&date, &timeinfo); 67 | char buffer[32]; 68 | size_t ret = strftime_l(buffer, sizeof(buffer), "%a, %d %b %Y %H:%M:%S GMT", &timeinfo, NULL); 69 | if (ret) { 70 | return @(buffer); 71 | } else { 72 | return nil; 73 | } 74 | } 75 | 76 | @end 77 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Extensions/NSHTTPCookie+Criollo.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSHTTPCookie+Criollo.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 5/17/14. 6 | // Copyright (c) 2014 Catalin Stan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | @interface NSHTTPCookie (Criollo) 13 | 14 | + (nullable NSDictionary*)responseHeaderFieldsWithCookies:(NSArray *)cookies; 15 | 16 | @end 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Extensions/NSHTTPCookie+Criollo.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSHTTPCookie+Criollo.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 5/17/14. 6 | // Copyright (c) 2014 Catalin Stan. All rights reserved. 7 | // 8 | 9 | #import "NSHTTPCookie+Criollo.h" 10 | #import "NSDate+RFC1123.h" 11 | 12 | @implementation NSHTTPCookie (Criollo) 13 | 14 | - (NSString *)HTTPHeaderField { 15 | if ( self.name == nil ) { 16 | return nil; 17 | } 18 | 19 | NSMutableArray* fields = [NSMutableArray array]; 20 | [fields addObject:[NSString stringWithFormat:@"%@=%@", self.name, self.value]]; 21 | if( ! self.isSessionOnly ) { 22 | [fields addObject:[NSString stringWithFormat:@"%@=%@", @"expires", self.expiresDate.rfc1123String]]; 23 | } 24 | [fields addObject:[NSString stringWithFormat:@"%@=%@", @"path", self.path]]; 25 | [fields addObject:[NSString stringWithFormat:@"%@=%@", @"domain", self.domain]]; 26 | 27 | if ( self.isSecure ) { 28 | [fields addObject:@"secure"]; 29 | } 30 | if ( self.isHTTPOnly ) { 31 | [fields addObject:@"httponly"]; 32 | } 33 | 34 | return [fields componentsJoinedByString:@"; "]; 35 | } 36 | 37 | + (NSDictionary *)responseHeaderFieldsWithCookies:(NSArray *)cookies { 38 | if ( cookies.count == 0 ) { 39 | return nil; 40 | } 41 | NSString* key = @"Set-Cookie"; 42 | NSMutableArray* headerFields = [NSMutableArray arrayWithCapacity:cookies.count]; 43 | [cookies enumerateObjectsUsingBlock:^(NSHTTPCookie* obj, NSUInteger idx, BOOL *stop) { @autoreleasepool { 44 | NSString* headerField = obj.HTTPHeaderField; 45 | if ( headerField != nil ) { 46 | [headerFields addObject:headerField]; 47 | } 48 | }}]; 49 | return @{key:[headerFields componentsJoinedByString:@", "]}; 50 | } 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Extensions/NSString+Criollo.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+Criollo.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 4/12/14. 6 | // Copyright (c) 2014 Catalin Stan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSString (Criollo) 12 | 13 | @property (nonatomic, readonly, copy) NSString *stringByDecodingURLEncodedString; 14 | @property (nonatomic, readonly, copy) NSString *URLEncodedString; 15 | 16 | @property (nonatomic, readonly, copy) NSString *uppercaseFirstLetterString; 17 | @property (nonatomic, readonly, copy) NSString *stringbyFormattingHTTPHeader; 18 | 19 | - (NSString *)pathRelativeToPath:(NSString *)path; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Extensions/NSString+Criollo.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+Criollo.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 4/12/14. 6 | // Copyright (c) 2014 Catalin Stan. All rights reserved. 7 | // 8 | 9 | #import "NSString+Criollo.h" 10 | #import "CRTypes.h" 11 | 12 | @implementation NSString (Criollo) 13 | 14 | - (NSString *)stringByDecodingURLEncodedString { 15 | NSString* returnString = self.stringByRemovingPercentEncoding; 16 | returnString = [returnString stringByReplacingOccurrencesOfString:@"+" withString:@" "]; 17 | return returnString; 18 | } 19 | 20 | - (NSString *)URLEncodedString { 21 | NSString* allowedCharacters = @"!*'();:&=$,/?%#[]"; 22 | NSString* returnString = [self stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet characterSetWithCharactersInString:allowedCharacters]]; 23 | returnString = [returnString stringByReplacingOccurrencesOfString:@" " withString:@"%20"]; 24 | return returnString; 25 | } 26 | 27 | - (NSString *)uppercaseFirstLetterString { 28 | return [[self substringToIndex:1].uppercaseString stringByAppendingString:[self substringFromIndex:1].lowercaseString]; 29 | } 30 | 31 | - (NSString *)stringbyFormattingHTTPHeader { 32 | NSMutableArray* words = [[self componentsSeparatedByString:@"-"] mutableCopy]; 33 | [words enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { 34 | [words setObject:[obj uppercaseFirstLetterString] atIndexedSubscript:idx]; 35 | }]; 36 | return [words componentsJoinedByString:@"-"]; 37 | } 38 | 39 | - (NSString *)pathRelativeToPath:(NSString *)path { 40 | 41 | if ( [path isEqualToString:CRPathSeparator] ) { 42 | return self; 43 | } 44 | 45 | NSUInteger relativePathStart = [self rangeOfString:path options:NSBackwardsSearch].location; 46 | if ( relativePathStart == NSNotFound ) { 47 | relativePathStart = 0; 48 | } 49 | 50 | NSString * relativePath; 51 | @try { 52 | relativePath = [[self substringFromIndex:relativePathStart + path.length] stringByStandardizingPath]; 53 | } @catch (NSException *exception) { 54 | relativePath = @""; 55 | } 56 | 57 | if ( ![relativePath hasPrefix:CRPathSeparator] ) { 58 | relativePath = [CRPathSeparator stringByAppendingString:relativePath ? : @""]; 59 | } 60 | 61 | return relativePath; 62 | } 63 | 64 | @end 65 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/FCGI/CRFCGIConnection.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRFCGIConnection.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/25/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRConnection.h" 10 | 11 | #define CRFCGIConnectionSocketTagReadRecordHeader 11 12 | #define CRFCGIConnectionSocketTagReadRecordContent 12 13 | 14 | #define CRFCGIConnectionSocketTagSendingResponse 20 15 | 16 | @interface CRFCGIConnection : CRConnection 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/FCGI/CRFCGIRecord.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRFCGIRecord.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/30/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #define CRFCGIRecordHeaderLength 8 10 | 11 | typedef NS_ENUM(UInt8, CRFCGIVersion) { 12 | CRFCGIVersion1 = 1 13 | }; 14 | 15 | typedef NS_ENUM(UInt8, CRFCGIRecordType) { 16 | CRFCGIRecordTypeBeginRequest = 1, 17 | CRFCGIRecordTypeAbortRequest = 2, 18 | CRFCGIRecordTypeEndRequest = 3, 19 | CRFCGIRecordTypeParams = 4, 20 | CRFCGIRecordTypeStdIn = 5, 21 | CRFCGIRecordTypeStdOut = 6, 22 | CRFCGIRecordTypeStdErr = 7, 23 | CRFCGIRecordTypeData = 8, 24 | CRFCGIRecordTypeGetValues = 9, 25 | CRFCGIRecordTypeGetValuesResult = 10, 26 | CRFCGIRecordTypeUnknown = 11 27 | }; 28 | 29 | NS_ASSUME_NONNULL_BEGIN 30 | 31 | FOUNDATION_EXPORT NSString * NSStringFromCRFCGIVersion(CRFCGIVersion version); 32 | FOUNDATION_EXPORT NSString * NSStringFromCRFCGIRecordType(CRFCGIRecordType recordType); 33 | 34 | @interface CRFCGIRecord : NSObject 35 | 36 | @property (nonatomic, assign) CRFCGIVersion version; 37 | @property (nonatomic, assign) CRFCGIRecordType type; 38 | @property (nonatomic, assign) UInt16 requestID; 39 | @property (nonatomic, assign) UInt16 contentLength; 40 | @property (nonatomic, assign) UInt8 paddingLength; 41 | @property (nonatomic, assign) UInt8 reserved; 42 | @property (nonatomic, strong, nullable) NSData *contentData; 43 | @property (nonatomic, strong, nullable) NSData *paddingData; 44 | 45 | @property (nonatomic, readonly) NSData *FCGIRecordData; 46 | 47 | + (CRFCGIRecord*)recordWithHeaderData:(NSData *)data; 48 | 49 | - (instancetype)initWithHeaderData:(NSData *)data NS_DESIGNATED_INITIALIZER; 50 | 51 | @end 52 | NS_ASSUME_NONNULL_END 53 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/FCGI/CRFCGIRecord.m: -------------------------------------------------------------------------------- 1 | // 2 | // CRFCGIRecord.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/30/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRFCGIRecord.h" 10 | 11 | NSString* NSStringFromCRFCGIVersion(CRFCGIVersion version) { 12 | NSString* versionName; 13 | switch (version) { 14 | case CRFCGIVersion1: 15 | versionName = @"CRFCGIVersion1"; 16 | break; 17 | } 18 | return versionName; 19 | } 20 | 21 | NSString* NSStringFromCRFCGIRecordType(CRFCGIRecordType recordType) { 22 | NSString* recordTypeName; 23 | switch (recordType) { 24 | case CRFCGIRecordTypeBeginRequest: 25 | recordTypeName = @"CRFCGIRecordTypeBeginRequest"; 26 | break; 27 | case CRFCGIRecordTypeAbortRequest: 28 | recordTypeName = @"CRFCGIRecordTypeAbortRequest"; 29 | break; 30 | case CRFCGIRecordTypeEndRequest: 31 | recordTypeName = @"CRFCGIRecordTypeEndRequest"; 32 | break; 33 | case CRFCGIRecordTypeParams: 34 | recordTypeName = @"CRFCGIRecordTypeParams"; 35 | break; 36 | case CRFCGIRecordTypeStdIn: 37 | recordTypeName = @"CRFCGIRecordTypeStdIn"; 38 | break; 39 | case CRFCGIRecordTypeStdOut: 40 | recordTypeName = @"CRFCGIRecordTypeStdOut"; 41 | break; 42 | case CRFCGIRecordTypeStdErr: 43 | recordTypeName = @"CRFCGIRecordTypeStdErr"; 44 | break; 45 | case CRFCGIRecordTypeData: 46 | recordTypeName = @"CRFCGIRecordTypeData"; 47 | break; 48 | case CRFCGIRecordTypeGetValues: 49 | recordTypeName = @"CRFCGIRecordTypeGetValues"; 50 | break; 51 | case CRFCGIRecordTypeGetValuesResult: 52 | recordTypeName = @"CRFCGIRecordTypeGetValuesResult"; 53 | break; 54 | case CRFCGIRecordTypeUnknown: 55 | recordTypeName = @"CRFCGIRecordTypeUnknown"; 56 | break; 57 | } 58 | return recordTypeName; 59 | } 60 | 61 | NS_ASSUME_NONNULL_BEGIN 62 | @interface CRFCGIRecord () 63 | 64 | @property (nonatomic, readonly, copy) NSData *headerProtocolData; 65 | 66 | @end 67 | NS_ASSUME_NONNULL_END 68 | 69 | @implementation CRFCGIRecord 70 | 71 | + (instancetype)recordWithHeaderData:(NSData *)headerData { 72 | return [[CRFCGIRecord alloc] initWithHeaderData:headerData]; 73 | } 74 | 75 | - (instancetype)init { 76 | return [self initWithHeaderData:[NSData data]]; 77 | } 78 | 79 | - (instancetype)initWithHeaderData:(NSData *)data { 80 | self = [super init]; 81 | if ( self != nil ) { 82 | if ( data != nil ) { 83 | const char *bytes = data.bytes; 84 | _version = bytes[0]; 85 | _type = bytes[1]; 86 | _requestID = (bytes[2] << 8) + bytes[3]; 87 | _contentLength = (bytes[4] << 8) + bytes[5]; 88 | _paddingLength = bytes[6]; 89 | _reserved = bytes[7]; 90 | } 91 | } 92 | return self; 93 | } 94 | 95 | 96 | @end 97 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/FCGI/CRFCGIRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRFCGIRequest.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/31/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRRequest.h" 10 | 11 | #define CRFCGIRequestFlagKeepAlive 1 12 | 13 | typedef NS_ENUM(UInt8, CRFCGIRequestRole) { 14 | CRFCGIRequestRoleResponder = 1, 15 | CRFCGIRequestRoleAuthorizer = 2, 16 | CRFCGIRequestRoleFilter = 3 17 | }; 18 | 19 | typedef UInt8 CRFCGIRequestFlags; 20 | 21 | NS_ASSUME_NONNULL_BEGIN 22 | 23 | FOUNDATION_EXPORT NSString * NSStringFromCRFCGIRequestRole(CRFCGIRequestRole requestRole); 24 | 25 | @interface CRFCGIRequest : CRRequest 26 | 27 | @property (nonatomic, assign) UInt16 requestID; 28 | @property (nonatomic, assign) CRFCGIRequestRole requestRole; 29 | @property (nonatomic, assign) CRFCGIRequestFlags requestFlags; 30 | 31 | @end 32 | NS_ASSUME_NONNULL_END 33 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/FCGI/CRFCGIRequest.m: -------------------------------------------------------------------------------- 1 | // 2 | // CRFCGIRequest.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/31/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRFCGIRequest.h" 10 | 11 | NSString* NSStringFromCRFCGIRequestRole(CRFCGIRequestRole requestRole) { 12 | NSString* requestRoleName; 13 | switch(requestRole) { 14 | case CRFCGIRequestRoleResponder: 15 | requestRoleName = @"CRFCGIRequestRoleResponder"; 16 | break; 17 | case CRFCGIRequestRoleAuthorizer: 18 | requestRoleName = @"CRFCGIRequestRoleAuthorizer"; 19 | break; 20 | case CRFCGIRequestRoleFilter: 21 | requestRoleName = @"CRFCGIRequestRoleFilter"; 22 | break; 23 | } 24 | return requestRoleName; 25 | } 26 | 27 | @implementation CRFCGIRequest 28 | 29 | - (BOOL)shouldCloseConnection { 30 | return (self.requestFlags & CRFCGIRequestFlagKeepAlive) == 0; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/FCGI/CRFCGIResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRFCGIResponse.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/30/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRResponse.h" 10 | 11 | typedef UInt32 CRFCGIApplicationStatus; 12 | 13 | typedef NS_ENUM(UInt8, CRFCGIProtocolStatus) { 14 | CRFCGIProtocolStatusRequestComplete = 0, 15 | CRFCGIProtocolStatusCannotMultiplexConnection = 1, 16 | CRFCGIProtocolStatusOverloaded = 2, 17 | CRFCGIProtocolStatusUnknownRole = 3, 18 | }; 19 | 20 | NS_ASSUME_NONNULL_BEGIN 21 | FOUNDATION_EXPORT NSString * NSStringFromCRFCGIProtocolStatus(CRFCGIProtocolStatus protocolStatus); 22 | 23 | @interface CRFCGIResponse : CRResponse 24 | 25 | @property (nonatomic, assign) CRFCGIApplicationStatus applicationStatus; 26 | @property (nonatomic, assign) CRFCGIProtocolStatus protocolStatus; 27 | 28 | @end 29 | NS_ASSUME_NONNULL_END 30 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/FCGI/CRFCGIServer.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRFCGIServer.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/25/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRServer.h" 10 | 11 | @interface CRFCGIServer : CRServer 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/FCGI/CRFCGIServer.m: -------------------------------------------------------------------------------- 1 | // 2 | // CRFCGIServer.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/25/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRFCGIServer.h" 10 | #import "CRServer_Internal.h" 11 | #import "CRFCGIConnection.h" 12 | #import "CRConnection_Internal.h" 13 | #import "CRFCGIServerConfiguration.h" 14 | 15 | @implementation CRFCGIServer 16 | 17 | - (instancetype)initWithDelegate:(id)delegate delegateQueue:(dispatch_queue_t)delegateQueue { 18 | self = [super initWithDelegate:delegate delegateQueue:delegateQueue]; 19 | if ( self != nil ) { 20 | self.configuration = [[CRFCGIServerConfiguration alloc] init]; 21 | } 22 | return self; 23 | } 24 | 25 | - (CRConnection*)newConnectionWithSocket:(GCDAsyncSocket*)socket { 26 | CRFCGIConnection* connection = [[CRFCGIConnection alloc] initWithSocket:socket server:self]; 27 | return connection; 28 | } 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/FCGI/CRFCGIServerConfiguration.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRFCGIServerConfiguration.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/30/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRServerConfiguration.h" 10 | 11 | @interface CRFCGIServerConfiguration : CRServerConfiguration 12 | 13 | @property (nonatomic, assign) NSUInteger CRFCGIConnectionReadRecordTimeout; 14 | @property (nonatomic, assign) NSUInteger CRFCGIConnectionSocketWriteBuffer; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/FCGI/CRFCGIServerConfiguration.m: -------------------------------------------------------------------------------- 1 | // 2 | // CRFCGIServerConfiguration.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/30/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRFCGIServerConfiguration.h" 10 | 11 | // Defaults 12 | NSUInteger const CRFCGIConnectionDefaultReadRecordTimeout = 5; 13 | NSUInteger const CRFCGIConnectionDefaultSocketWriteBuffer = 32 * 1024; 14 | 15 | // Keys 16 | NSString* const CRFCGIConnectionReadRecordTimeoutKey = @"CRFCGIConnectionReadRecordTimeout"; 17 | NSString* const CRFCGIConnectionSocketWriteBufferKey = @"CRFCGIConnectionSocketWriteBuffer"; 18 | 19 | @implementation CRFCGIServerConfiguration 20 | 21 | - (void)readConfiguration { 22 | 23 | [super readConfiguration]; 24 | 25 | NSBundle* mainBundle = [NSBundle mainBundle]; 26 | 27 | if ( [mainBundle objectForInfoDictionaryKey:CRFCGIConnectionReadRecordTimeoutKey] ) { 28 | self.CRFCGIConnectionReadRecordTimeout = [[mainBundle objectForInfoDictionaryKey:CRFCGIConnectionReadRecordTimeoutKey] integerValue]; 29 | } else { 30 | self.CRFCGIConnectionReadRecordTimeout = CRFCGIConnectionDefaultReadRecordTimeout; 31 | } 32 | 33 | if ( [mainBundle objectForInfoDictionaryKey:CRFCGIConnectionSocketWriteBufferKey] ) { 34 | self.CRFCGIConnectionSocketWriteBuffer = [[mainBundle objectForInfoDictionaryKey:CRFCGIConnectionSocketWriteBufferKey] integerValue]; 35 | } else { 36 | self.CRFCGIConnectionSocketWriteBuffer = CRFCGIConnectionDefaultSocketWriteBuffer; 37 | } 38 | 39 | } 40 | 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/HTTP/CRHTTPConnection.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRHTTPConnection.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/25/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRConnection.h" 10 | 11 | @class CRRequest, CRResponse; 12 | 13 | #define CRHTTPConnectionSocketTagBeginReadingRequest 10 14 | #define CRHTTPConnectionSocketTagReadingRequestHeader 11 15 | #define CRHTTPConnectionSocketTagReadingRequestBody 12 16 | 17 | @interface CRHTTPConnection : CRConnection 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/HTTP/CRHTTPResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRHTTPResponse.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/30/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRResponse.h" 10 | 11 | @interface CRHTTPResponse : CRResponse 12 | 13 | @property (nonatomic, readonly) BOOL isChunked; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/HTTP/CRHTTPSHelper.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRHTTPSHelper.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/09/2017. 6 | // Copyright © 2017 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | FOUNDATION_EXPORT NSString * const CRHTTPSErrorDomain; 14 | 15 | FOUNDATION_EXPORT NSUInteger const CRHTTPSInternalError; 16 | FOUNDATION_EXPORT NSUInteger const CRHTTPSInvalidCertificateError; 17 | FOUNDATION_EXPORT NSUInteger const CRHTTPSInvalidPrivateKeyError; 18 | FOUNDATION_EXPORT NSUInteger const CRHTTPSInvalidIdentityError; 19 | FOUNDATION_EXPORT NSUInteger const CRHTTPSInvalidPasswordError; 20 | FOUNDATION_EXPORT NSUInteger const CRHTTPSMissingCredentialsError; 21 | FOUNDATION_EXPORT NSUInteger const CRHTTPSCreateIdentityError; 22 | 23 | FOUNDATION_EXPORT NSString * const CRHTTPSIdentityPathKey; 24 | FOUNDATION_EXPORT NSString * const CRHTTPSCertificatePathKey; 25 | FOUNDATION_EXPORT NSString * const CRHTTPSCertificateKeyPathKey; 26 | 27 | @interface CRHTTPSHelper : NSObject 28 | 29 | - (nullable NSArray *)parseIdentrityFile:(NSString *)identityFilePath password:(NSString *)password withError:(NSError * _Nullable __autoreleasing * _Nullable)error; 30 | - (nullable NSArray *)parseCertificateFile:(NSString *)certificatePath certificateKeyFile:(NSString *)certificateKeyPath withError:(NSError * _Nullable __autoreleasing * _Nullable)error; 31 | 32 | @end 33 | 34 | NS_ASSUME_NONNULL_END 35 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/HTTP/CRHTTPServer.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRHTTPServer.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/25/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | 10 | #import "CRServer.h" 11 | 12 | @class CRHTTPServerConfiguration; 13 | 14 | @interface CRHTTPServer : CRServer 15 | 16 | @property (nonatomic) BOOL isSecure; 17 | 18 | @property (nonatomic, strong, nullable) NSString *identityPath; 19 | @property (nonatomic, strong, nullable) NSString *password; 20 | @property (nonatomic, strong, nullable) NSString *certificatePath; 21 | @property (nonatomic, strong, nullable) NSString *certificateKeyPath; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/HTTP/CRHTTPServerConfiguration.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRHTTPServerConfiguration.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/30/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRServerConfiguration.h" 10 | 11 | @interface CRHTTPServerConfiguration : CRServerConfiguration 12 | 13 | @property (nonatomic, assign) NSUInteger CRHTTPConnectionReadHeaderTimeout; 14 | @property (nonatomic, assign) NSUInteger CRHTTPConnectionReadBodyTimeout; 15 | 16 | @property (nonatomic, assign) NSUInteger CRRequestMaxHeaderLength; 17 | 18 | @property (nonatomic, assign) NSUInteger CRRequestBodyBufferSize; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/HTTP/CRHTTPServerConfiguration.m: -------------------------------------------------------------------------------- 1 | // 2 | // CRHTTPServerConfiguration.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 10/30/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRHTTPServerConfiguration.h" 10 | 11 | // Defaults 12 | NSUInteger const CRHTTPConnectionDefaultReadHeaderTimeout = 2; 13 | NSUInteger const CRHTTPConnectionDefaultReadBodyTimeout = 2; 14 | NSUInteger const CRRequestDefaultMaxHeaderLength = 20 * 1024; 15 | NSUInteger const CRRequestDefaultBodyBufferSize = 8 * 1024 * 1024; 16 | 17 | // Keys 18 | NSString* const CRHTTPConnectionReadHeaderTimeoutKey = @"CRHTTPConnectionReadHeaderTimeout"; 19 | NSString* const CRHTTPConnectionReadBodyTimeoutKey = @"CRHTTPConnectionReadBodyTimeout"; 20 | NSString* const CRRequestMaxHeaderLengthKey = @"CRRequestMaxHeaderLength"; 21 | NSString* const CRRequestBodyBufferSizeKey = @"CRRequestBodyBufferSize"; 22 | 23 | @implementation CRHTTPServerConfiguration 24 | 25 | - (void)readConfiguration { 26 | [super readConfiguration]; 27 | 28 | NSBundle* mainBundle = [NSBundle mainBundle]; 29 | 30 | if ( [mainBundle objectForInfoDictionaryKey:CRHTTPConnectionReadHeaderTimeoutKey] ) { 31 | self.CRHTTPConnectionReadHeaderTimeout = [[mainBundle objectForInfoDictionaryKey:CRHTTPConnectionReadHeaderTimeoutKey] integerValue]; 32 | } else { 33 | self.CRHTTPConnectionReadHeaderTimeout = CRHTTPConnectionDefaultReadHeaderTimeout; 34 | } 35 | if ( [mainBundle objectForInfoDictionaryKey:CRHTTPConnectionReadBodyTimeoutKey] ) { 36 | self.CRHTTPConnectionReadBodyTimeout = [[mainBundle objectForInfoDictionaryKey:CRHTTPConnectionReadBodyTimeoutKey] integerValue]; 37 | } else { 38 | self.CRHTTPConnectionReadBodyTimeout = CRHTTPConnectionDefaultReadBodyTimeout; 39 | } 40 | 41 | // Limits 42 | if ( [mainBundle objectForInfoDictionaryKey:CRRequestMaxHeaderLengthKey] ) { 43 | self.CRRequestMaxHeaderLength = [[mainBundle objectForInfoDictionaryKey:CRRequestMaxHeaderLengthKey] integerValue]; 44 | } else { 45 | self.CRRequestMaxHeaderLength = CRRequestDefaultMaxHeaderLength; 46 | } 47 | 48 | // Buffers 49 | if ( [mainBundle objectForInfoDictionaryKey:CRRequestBodyBufferSizeKey] ) { 50 | self.CRRequestBodyBufferSize = [[mainBundle objectForInfoDictionaryKey:CRRequestBodyBufferSizeKey] integerValue]; 51 | } else { 52 | self.CRRequestBodyBufferSize = CRRequestDefaultBodyBufferSize; 53 | } 54 | 55 | } 56 | 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRNib.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRNib.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 5/18/14. 6 | // Copyright (c) 2014 Catalin Stan. All rights reserved. 7 | // 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | /** 12 | Instances of the `NSNib` class serve as object wrappers, or containers, for the 13 | HTML content serverd by instances of `CRViewController`. An `CRNib` object 14 | keeps the contents of a nib file resident in memory, ready for instantiation. 15 | 16 | Criollo follows the same paradign as Cocoa and UIKit with regards to 17 | view controllers and nibs. The main difference is that Criollo expects 18 | an HTML document as the nib's contents. 19 | 20 | ## A note on Templating 21 | 22 | If you prefer to use a templating language to write html, the way to do 23 | it to compile the file at build time and copy it to the bundle's resource 24 | directory. [Criollo Web](https://github.com/thecatalinstan/Criollo-Web) 25 | uses `jade` as its template language for example. 26 | 27 | */ 28 | @interface CRNib : NSObject 29 | 30 | /** 31 | * The contents of the nib. 32 | */ 33 | @property (nonatomic, strong, readonly) NSData *data; 34 | 35 | /** 36 | * The nib name 37 | */ 38 | @property (nonatomic, strong, readonly) NSString *name; 39 | 40 | /** 41 | @name Initializing a CRNib 42 | */ 43 | 44 | /** 45 | Creates a new `CRNib` object from a file qith the given `nibName`, 46 | in the given bundle. 47 | 48 | The method will look for a file named `nibName.html` inside the 49 | `Resources` folder of the specified bundle. 50 | 51 | @param nibName The base name of the nib file 52 | @param bundle The bundle in which to locate the file 53 | 54 | @return A `CRNib` object or `nil` if the file was not found 55 | */ 56 | - (instancetype)initWithNibNamed:(NSString *)nibName bundle:(NSBundle * _Nullable)bundle NS_DESIGNATED_INITIALIZER; 57 | 58 | @end 59 | 60 | NS_ASSUME_NONNULL_END 61 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRNib.m: -------------------------------------------------------------------------------- 1 | // 2 | // CRNib.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 5/18/14. 6 | // Copyright (c) 2014 Catalin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRNib.h" 10 | 11 | #define CRNibExtension @"html" 12 | 13 | @implementation CRNib 14 | 15 | - (instancetype)init { 16 | return [self initWithNibNamed:@"" bundle:nil]; 17 | } 18 | 19 | - (instancetype)initWithNibNamed:(NSString *)nibName bundle:(NSBundle *)bundle { 20 | self = [super init]; 21 | if ( self != nil ) { 22 | _name = nibName; 23 | 24 | if ( bundle == nil ) { 25 | bundle = [NSBundle mainBundle]; 26 | } 27 | 28 | NSString* path = [bundle pathForResource:self.name ofType:CRNibExtension]; 29 | if ( path != nil ) { 30 | NSError * nibLoadError; 31 | _data = [NSData dataWithContentsOfFile:path options:NSDataReadingMapped error:&nibLoadError]; 32 | } 33 | if ( _data == nil ) { 34 | _data = [NSData data]; 35 | } 36 | } 37 | return self; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRRoute.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRRoute.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 11/8/15. 6 | // Copyright © 2015 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRTypes.h" 10 | 11 | @class CRRequest, CRResponse; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface CRRoute : NSObject 16 | 17 | @property (nonatomic) CRHTTPMethod method; 18 | @property (nonatomic, strong) NSString * path; 19 | @property (nonatomic) BOOL recursive; 20 | @property (nonatomic, copy) CRRouteBlock block; 21 | 22 | - (instancetype)initWithBlock:(CRRouteBlock)block method:(CRHTTPMethod)method path:(NSString * _Nullable)path recursive:(BOOL)recursive NS_DESIGNATED_INITIALIZER; 23 | - (instancetype)initWithControllerClass:(__unsafe_unretained Class )controllerClass method:(CRHTTPMethod)method path:(NSString * _Nullable)path recursive:(BOOL)recursive; 24 | - (instancetype)initWithViewControllerClass:(__unsafe_unretained Class )viewControllerClass nibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil method:(CRHTTPMethod)method path:(NSString * _Nullable)path recursive:(BOOL)recursive; 25 | 26 | - (instancetype)initWithStaticDirectoryAtPath:(NSString *)directoryPath options:(CRStaticDirectoryServingOptions)options path:(NSString * _Nullable)path; 27 | - (instancetype)initWithStaticFileAtPath:(NSString *)filePath options:(CRStaticFileServingOptions)options fileName:(NSString * _Nullable)fileName contentType:(NSString * _Nullable)contentType contentDisposition:(CRStaticFileContentDisposition)contentDisposition path:(NSString * _Nullable)path; 28 | 29 | @end 30 | 31 | NS_ASSUME_NONNULL_END 32 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRRouteController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRRouteController.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 19/07/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRTypes.h" 10 | #import "CRRouter.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface CRRouteController : CRRouter 15 | 16 | @property (nonatomic, copy) CRRouteBlock routeBlock; 17 | @property (nonatomic, strong, readonly) NSString *prefix; 18 | 19 | - (instancetype)initWithPrefix:(NSString *)prefix NS_DESIGNATED_INITIALIZER; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRRouteController.m: -------------------------------------------------------------------------------- 1 | // 2 | // CRRouteController.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 19/07/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRRouteController.h" 10 | #import "CRRouter_Internal.h" 11 | #import "CRRoute.h" 12 | #import "CRRequest.h" 13 | #import "CRRequest_Internal.h" 14 | #import "CRResponse.h" 15 | #import "CRResponse_Internal.h" 16 | #import "CRRouteMatchingResult.h" 17 | #import "NSString+Criollo.h" 18 | 19 | NS_ASSUME_NONNULL_BEGIN 20 | 21 | @interface CRRouteController () 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | 27 | @implementation CRRouteController 28 | 29 | - (instancetype)init { 30 | return [self initWithPrefix:CRPathSeparator]; 31 | } 32 | 33 | - (instancetype)initWithPrefix:(NSString *)prefix { 34 | self = [super init]; 35 | if ( self != nil ) { 36 | _prefix = prefix; 37 | 38 | CRRouteController * __weak controller = self; 39 | _routeBlock = ^(CRRequest *request, CRResponse *response, CRRouteCompletionBlock completionHandler) { 40 | @autoreleasepool { 41 | NSString* requestedPath = request.env[@"DOCUMENT_URI"]; 42 | NSString* requestedRelativePath = [requestedPath pathRelativeToPath:controller.prefix]; 43 | NSArray* routes = [controller routesForPath:requestedRelativePath method:request.method]; 44 | [controller executeRoutes:routes forRequest:request response:response withCompletion:completionHandler]; 45 | } 46 | }; 47 | } 48 | return self; 49 | } 50 | @end 51 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRRouteMatchingResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRRouteMatchingResult.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 24/07/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRTypes.h" 10 | 11 | @class CRRoute; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface CRRouteMatchingResult : NSObject 16 | 17 | @property (nonatomic, strong, readonly) CRRoute * route; 18 | @property (nonatomic, strong, nullable, readonly) NSArray * matches; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRRouteMatchingResult.m: -------------------------------------------------------------------------------- 1 | // 2 | // CRRouteMatchingResult.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 24/07/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRRouteMatchingResult.h" 10 | #import "CRRouteMatchingResult_Internal.h" 11 | #import "CRRoute.h" 12 | 13 | @implementation CRRouteMatchingResult 14 | 15 | - (instancetype)init { 16 | return [self initWithRoute:[CRRoute new] matches:nil]; 17 | } 18 | 19 | - (instancetype)initWithRoute:(CRRoute *)route matches:(NSArray *)matches { 20 | self = [super init]; 21 | if ( self != nil ) { 22 | _route = route; 23 | _matches = matches; 24 | } 25 | return self; 26 | } 27 | 28 | + (instancetype)routeMatchingResultWithRoute:(CRRoute *)route matches:(NSArray *)matches { 29 | return [[CRRouteMatchingResult alloc] initWithRoute:route matches:matches]; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRRouteMatchingResult_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRRouteMatchingResult_Internal.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 24/07/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRRouteMatchingResult.h" 10 | 11 | @class CRRoute; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface CRRouteMatchingResult () 16 | 17 | + (instancetype)routeMatchingResultWithRoute:(CRRoute *)route matches:(NSArray * _Nullable)matches; 18 | 19 | - (instancetype)initWithRoute:(CRRoute *)route matches:(NSArray * _Nullable)matches NS_DESIGNATED_INITIALIZER; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRRoute_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRRoute_Internal.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 24/07/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRRoute.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface CRRoute () 14 | 15 | @property (nonatomic, strong, nullable, readonly) NSRegularExpression * pathRegex; 16 | @property (nonatomic, strong, nullable, readonly) NSArray * pathKeys; 17 | @property (nonatomic, strong, nullable) id associatedObject; 18 | 19 | - (NSArray *)processMatchesInPath:(NSString *)path; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRRouter_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRRouter_Internal.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 25/07/16. 6 | // Copyright © 2016 Cătălin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRRouter.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface CRRouter () 14 | 15 | - (void)addRoute:(CRRoute *)route; 16 | - (NSArray *)routesForPath:(NSString *)path method:(CRHTTPMethod)method; 17 | 18 | - (void)executeRoutes:(NSArray *)routes forRequest:(CRRequest *)request response:(CRResponse *)response withCompletion:(CRRouteCompletionBlock)completionBlock; 19 | - (void)executeRoutes:(NSArray *)routes forRequest:(CRRequest *)request response:(CRResponse *)response withCompletion:(CRRouteCompletionBlock)completionBlock notFoundBlock:(CRRouteBlock _Nullable)notFoundBlock; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRView.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRView.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 5/17/14. 6 | // Copyright (c) 2014 Catalin Stan. All rights reserved. 7 | // 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface CRView : NSObject 12 | 13 | @property (nonatomic, readonly, strong) NSString *contents; 14 | 15 | - (instancetype)initWithContents:(NSString * _Nullable)contents NS_DESIGNATED_INITIALIZER; 16 | 17 | - (NSString*)render:(NSDictionary * _Nullable)vars; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRView.m: -------------------------------------------------------------------------------- 1 | // 2 | // CRView.m 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 5/17/14. 6 | // Copyright (c) 2014 Catalin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRView.h" 10 | 11 | #define CRViewVariableFormat @"{{%@}}" 12 | 13 | @interface CRView () 14 | 15 | @end 16 | 17 | @implementation CRView 18 | 19 | - (instancetype)init { 20 | return [self initWithContents:nil]; 21 | } 22 | 23 | - (instancetype)initWithContents:(NSString *)contents { 24 | self = [super init]; 25 | if ( self != nil ) { 26 | _contents = contents ? : @""; 27 | } 28 | return self; 29 | } 30 | 31 | - (NSString *)render:(NSDictionary *)vars { 32 | if ( vars == nil ) { 33 | return self.contents; 34 | } else { 35 | NSMutableString* mutableContents = self.contents.mutableCopy; 36 | [vars enumerateKeysAndObjectsUsingBlock:^(NSString * _Nonnull key, NSString * _Nonnull obj, BOOL * _Nonnull stop) { @autoreleasepool { 37 | NSString *replacement = obj; 38 | if ( ![obj isKindOfClass:[NSString class]] ) { 39 | replacement = [obj description]; 40 | } 41 | [mutableContents replaceOccurrencesOfString:[NSString stringWithFormat:CRViewVariableFormat, key] withString:replacement options:0 range:NSMakeRange(0, mutableContents.length)]; 42 | }}]; 43 | return mutableContents.copy; 44 | } 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /Pods/Criollo/Criollo/Source/Routing/CRViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CRViewController.h 3 | // Criollo 4 | // 5 | // Created by Cătălin Stan on 5/17/14. 6 | // Copyright (c) 2014 Catalin Stan. All rights reserved. 7 | // 8 | 9 | #import "CRTypes.h" 10 | #import "CRRouteController.h" 11 | 12 | @class CRView, CRRequest, CRResponse; 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | @interface CRViewController : CRRouteController 17 | 18 | @property (nonatomic, strong, nullable) CRView* view; 19 | 20 | @property (nonatomic, strong) NSMutableDictionary *vars; 21 | 22 | @property (nonatomic, readonly) NSString *nibName; 23 | @property (nonatomic, readonly, nullable) NSBundle *nibBundle; 24 | 25 | @property (nonatomic, readonly) BOOL shouldFinishResponse; 26 | 27 | - (instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil; 28 | - (instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil prefix:(NSString * _Nullable)prefix NS_DESIGNATED_INITIALIZER; 29 | 30 | - (void)viewDidLoad; 31 | - (NSString*)presentViewControllerWithRequest:(CRRequest *)request response:(CRResponse *)response; 32 | 33 | @end 34 | 35 | NS_ASSUME_NONNULL_END 36 | -------------------------------------------------------------------------------- /Pods/Criollo/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012–2016 Cătălin Stan (https://twitter.com/catalinstan) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/asn1_mac.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #error "This file is obsolete; please update your software." 11 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/blowfish.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_BLOWFISH_H 11 | # define HEADER_BLOWFISH_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_BF 16 | # include 17 | # ifdef __cplusplus 18 | extern "C" { 19 | # endif 20 | 21 | # define BF_ENCRYPT 1 22 | # define BF_DECRYPT 0 23 | 24 | /*- 25 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 26 | * ! BF_LONG has to be at least 32 bits wide. ! 27 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 28 | */ 29 | # define BF_LONG unsigned int 30 | 31 | # define BF_ROUNDS 16 32 | # define BF_BLOCK 8 33 | 34 | typedef struct bf_key_st { 35 | BF_LONG P[BF_ROUNDS + 2]; 36 | BF_LONG S[4 * 256]; 37 | } BF_KEY; 38 | 39 | void BF_set_key(BF_KEY *key, int len, const unsigned char *data); 40 | 41 | void BF_encrypt(BF_LONG *data, const BF_KEY *key); 42 | void BF_decrypt(BF_LONG *data, const BF_KEY *key); 43 | 44 | void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, 45 | const BF_KEY *key, int enc); 46 | void BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, 47 | const BF_KEY *schedule, unsigned char *ivec, int enc); 48 | void BF_cfb64_encrypt(const unsigned char *in, unsigned char *out, 49 | long length, const BF_KEY *schedule, 50 | unsigned char *ivec, int *num, int enc); 51 | void BF_ofb64_encrypt(const unsigned char *in, unsigned char *out, 52 | long length, const BF_KEY *schedule, 53 | unsigned char *ivec, int *num); 54 | const char *BF_options(void); 55 | 56 | # ifdef __cplusplus 57 | } 58 | # endif 59 | # endif 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/buffer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_BUFFER_H 11 | # define HEADER_BUFFER_H 12 | 13 | # include 14 | # ifndef HEADER_CRYPTO_H 15 | # include 16 | # endif 17 | 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | # include 24 | 25 | # if !defined(NO_SYS_TYPES_H) 26 | # include 27 | # endif 28 | 29 | /* 30 | * These names are outdated as of OpenSSL 1.1; a future release 31 | * will move them to be deprecated. 32 | */ 33 | # define BUF_strdup(s) OPENSSL_strdup(s) 34 | # define BUF_strndup(s, size) OPENSSL_strndup(s, size) 35 | # define BUF_memdup(data, size) OPENSSL_memdup(data, size) 36 | # define BUF_strlcpy(dst, src, size) OPENSSL_strlcpy(dst, src, size) 37 | # define BUF_strlcat(dst, src, size) OPENSSL_strlcat(dst, src, size) 38 | # define BUF_strnlen(str, maxlen) OPENSSL_strnlen(str, maxlen) 39 | 40 | struct buf_mem_st { 41 | size_t length; /* current number of bytes */ 42 | char *data; 43 | size_t max; /* size of buffer */ 44 | unsigned long flags; 45 | }; 46 | 47 | # define BUF_MEM_FLAG_SECURE 0x01 48 | 49 | BUF_MEM *BUF_MEM_new(void); 50 | BUF_MEM *BUF_MEM_new_ex(unsigned long flags); 51 | void BUF_MEM_free(BUF_MEM *a); 52 | size_t BUF_MEM_grow(BUF_MEM *str, size_t len); 53 | size_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len); 54 | void BUF_reverse(unsigned char *out, const unsigned char *in, size_t siz); 55 | 56 | /* BEGIN ERROR CODES */ 57 | /* 58 | * The following lines are auto generated by the script mkerr.pl. Any changes 59 | * made after this point may be overwritten when the script is next run. 60 | */ 61 | 62 | int ERR_load_BUF_strings(void); 63 | 64 | /* Error codes for the BUF functions. */ 65 | 66 | /* Function codes. */ 67 | # define BUF_F_BUF_MEM_GROW 100 68 | # define BUF_F_BUF_MEM_GROW_CLEAN 105 69 | # define BUF_F_BUF_MEM_NEW 101 70 | 71 | /* Reason codes. */ 72 | 73 | # ifdef __cplusplus 74 | } 75 | # endif 76 | #endif 77 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/camellia.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_CAMELLIA_H 11 | # define HEADER_CAMELLIA_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_CAMELLIA 16 | # include 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | # define CAMELLIA_ENCRYPT 1 22 | # define CAMELLIA_DECRYPT 0 23 | 24 | /* 25 | * Because array size can't be a const in C, the following two are macros. 26 | * Both sizes are in bytes. 27 | */ 28 | 29 | /* This should be a hidden type, but EVP requires that the size be known */ 30 | 31 | # define CAMELLIA_BLOCK_SIZE 16 32 | # define CAMELLIA_TABLE_BYTE_LEN 272 33 | # define CAMELLIA_TABLE_WORD_LEN (CAMELLIA_TABLE_BYTE_LEN / 4) 34 | 35 | typedef unsigned int KEY_TABLE_TYPE[CAMELLIA_TABLE_WORD_LEN]; /* to match 36 | * with WORD */ 37 | 38 | struct camellia_key_st { 39 | union { 40 | double d; /* ensures 64-bit align */ 41 | KEY_TABLE_TYPE rd_key; 42 | } u; 43 | int grand_rounds; 44 | }; 45 | typedef struct camellia_key_st CAMELLIA_KEY; 46 | 47 | int Camellia_set_key(const unsigned char *userKey, const int bits, 48 | CAMELLIA_KEY *key); 49 | 50 | void Camellia_encrypt(const unsigned char *in, unsigned char *out, 51 | const CAMELLIA_KEY *key); 52 | void Camellia_decrypt(const unsigned char *in, unsigned char *out, 53 | const CAMELLIA_KEY *key); 54 | 55 | void Camellia_ecb_encrypt(const unsigned char *in, unsigned char *out, 56 | const CAMELLIA_KEY *key, const int enc); 57 | void Camellia_cbc_encrypt(const unsigned char *in, unsigned char *out, 58 | size_t length, const CAMELLIA_KEY *key, 59 | unsigned char *ivec, const int enc); 60 | void Camellia_cfb128_encrypt(const unsigned char *in, unsigned char *out, 61 | size_t length, const CAMELLIA_KEY *key, 62 | unsigned char *ivec, int *num, const int enc); 63 | void Camellia_cfb1_encrypt(const unsigned char *in, unsigned char *out, 64 | size_t length, const CAMELLIA_KEY *key, 65 | unsigned char *ivec, int *num, const int enc); 66 | void Camellia_cfb8_encrypt(const unsigned char *in, unsigned char *out, 67 | size_t length, const CAMELLIA_KEY *key, 68 | unsigned char *ivec, int *num, const int enc); 69 | void Camellia_ofb128_encrypt(const unsigned char *in, unsigned char *out, 70 | size_t length, const CAMELLIA_KEY *key, 71 | unsigned char *ivec, int *num); 72 | void Camellia_ctr128_encrypt(const unsigned char *in, unsigned char *out, 73 | size_t length, const CAMELLIA_KEY *key, 74 | unsigned char ivec[CAMELLIA_BLOCK_SIZE], 75 | unsigned char ecount_buf[CAMELLIA_BLOCK_SIZE], 76 | unsigned int *num); 77 | 78 | # ifdef __cplusplus 79 | } 80 | # endif 81 | # endif 82 | 83 | #endif 84 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/cast.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_CAST_H 11 | # define HEADER_CAST_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_CAST 16 | # ifdef __cplusplus 17 | extern "C" { 18 | # endif 19 | 20 | # define CAST_ENCRYPT 1 21 | # define CAST_DECRYPT 0 22 | 23 | # define CAST_LONG unsigned int 24 | 25 | # define CAST_BLOCK 8 26 | # define CAST_KEY_LENGTH 16 27 | 28 | typedef struct cast_key_st { 29 | CAST_LONG data[32]; 30 | int short_key; /* Use reduced rounds for short key */ 31 | } CAST_KEY; 32 | 33 | void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data); 34 | void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out, 35 | const CAST_KEY *key, int enc); 36 | void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key); 37 | void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key); 38 | void CAST_cbc_encrypt(const unsigned char *in, unsigned char *out, 39 | long length, const CAST_KEY *ks, unsigned char *iv, 40 | int enc); 41 | void CAST_cfb64_encrypt(const unsigned char *in, unsigned char *out, 42 | long length, const CAST_KEY *schedule, 43 | unsigned char *ivec, int *num, int enc); 44 | void CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out, 45 | long length, const CAST_KEY *schedule, 46 | unsigned char *ivec, int *num); 47 | 48 | # ifdef __cplusplus 49 | } 50 | # endif 51 | # endif 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/cmac.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_CMAC_H 11 | # define HEADER_CMAC_H 12 | 13 | # ifndef OPENSSL_NO_CMAC 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | # include 20 | 21 | /* Opaque */ 22 | typedef struct CMAC_CTX_st CMAC_CTX; 23 | 24 | CMAC_CTX *CMAC_CTX_new(void); 25 | void CMAC_CTX_cleanup(CMAC_CTX *ctx); 26 | void CMAC_CTX_free(CMAC_CTX *ctx); 27 | EVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx); 28 | int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in); 29 | 30 | int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen, 31 | const EVP_CIPHER *cipher, ENGINE *impl); 32 | int CMAC_Update(CMAC_CTX *ctx, const void *data, size_t dlen); 33 | int CMAC_Final(CMAC_CTX *ctx, unsigned char *out, size_t *poutlen); 34 | int CMAC_resume(CMAC_CTX *ctx); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | # endif 41 | #endif 42 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/comp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_COMP_H 11 | # define HEADER_COMP_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_COMP 16 | # include 17 | # ifdef __cplusplus 18 | extern "C" { 19 | # endif 20 | 21 | 22 | 23 | COMP_CTX *COMP_CTX_new(COMP_METHOD *meth); 24 | const COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx); 25 | int COMP_CTX_get_type(const COMP_CTX* comp); 26 | int COMP_get_type(const COMP_METHOD *meth); 27 | const char *COMP_get_name(const COMP_METHOD *meth); 28 | void COMP_CTX_free(COMP_CTX *ctx); 29 | 30 | int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, 31 | unsigned char *in, int ilen); 32 | int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, 33 | unsigned char *in, int ilen); 34 | 35 | COMP_METHOD *COMP_zlib(void); 36 | 37 | #if OPENSSL_API_COMPAT < 0x10100000L 38 | #define COMP_zlib_cleanup() while(0) continue 39 | #endif 40 | 41 | # ifdef HEADER_BIO_H 42 | # ifdef ZLIB 43 | const BIO_METHOD *BIO_f_zlib(void); 44 | # endif 45 | # endif 46 | 47 | /* BEGIN ERROR CODES */ 48 | /* 49 | * The following lines are auto generated by the script mkerr.pl. Any changes 50 | * made after this point may be overwritten when the script is next run. 51 | */ 52 | 53 | int ERR_load_COMP_strings(void); 54 | 55 | /* Error codes for the COMP functions. */ 56 | 57 | /* Function codes. */ 58 | # define COMP_F_BIO_ZLIB_FLUSH 99 59 | # define COMP_F_BIO_ZLIB_NEW 100 60 | # define COMP_F_BIO_ZLIB_READ 101 61 | # define COMP_F_BIO_ZLIB_WRITE 102 62 | 63 | /* Reason codes. */ 64 | # define COMP_R_ZLIB_DEFLATE_ERROR 99 65 | # define COMP_R_ZLIB_INFLATE_ERROR 100 66 | # define COMP_R_ZLIB_NOT_SUPPORTED 101 67 | 68 | # ifdef __cplusplus 69 | } 70 | # endif 71 | # endif 72 | #endif 73 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/conf_api.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_CONF_API_H 11 | # define HEADER_CONF_API_H 12 | 13 | # include 14 | # include 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | /* Up until OpenSSL 0.9.5a, this was new_section */ 21 | CONF_VALUE *_CONF_new_section(CONF *conf, const char *section); 22 | /* Up until OpenSSL 0.9.5a, this was get_section */ 23 | CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section); 24 | /* Up until OpenSSL 0.9.5a, this was CONF_get_section */ 25 | STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, 26 | const char *section); 27 | 28 | int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value); 29 | char *_CONF_get_string(const CONF *conf, const char *section, 30 | const char *name); 31 | long _CONF_get_number(const CONF *conf, const char *section, 32 | const char *name); 33 | 34 | int _CONF_new_data(CONF *conf); 35 | void _CONF_free_data(CONF *conf); 36 | 37 | #ifdef __cplusplus 38 | } 39 | #endif 40 | #endif 41 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/dtls1.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_DTLS1_H 11 | # define HEADER_DTLS1_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | # define DTLS1_VERSION 0xFEFF 18 | # define DTLS1_2_VERSION 0xFEFD 19 | # define DTLS_MIN_VERSION DTLS1_VERSION 20 | # define DTLS_MAX_VERSION DTLS1_2_VERSION 21 | # define DTLS1_VERSION_MAJOR 0xFE 22 | 23 | # define DTLS1_BAD_VER 0x0100 24 | 25 | /* Special value for method supporting multiple versions */ 26 | # define DTLS_ANY_VERSION 0x1FFFF 27 | 28 | /* lengths of messages */ 29 | # define DTLS1_COOKIE_LENGTH 256 30 | 31 | # define DTLS1_RT_HEADER_LENGTH 13 32 | 33 | # define DTLS1_HM_HEADER_LENGTH 12 34 | 35 | # define DTLS1_HM_BAD_FRAGMENT -2 36 | # define DTLS1_HM_FRAGMENT_RETRY -3 37 | 38 | # define DTLS1_CCS_HEADER_LENGTH 1 39 | 40 | # ifdef DTLS1_AD_MISSING_HANDSHAKE_MESSAGE 41 | # define DTLS1_AL_HEADER_LENGTH 7 42 | # else 43 | # define DTLS1_AL_HEADER_LENGTH 2 44 | # endif 45 | 46 | 47 | /* Timeout multipliers (timeout slice is defined in apps/timeouts.h */ 48 | # define DTLS1_TMO_READ_COUNT 2 49 | # define DTLS1_TMO_WRITE_COUNT 2 50 | 51 | # define DTLS1_TMO_ALERT_COUNT 12 52 | 53 | #ifdef __cplusplus 54 | } 55 | #endif 56 | #endif 57 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/ebcdic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_EBCDIC_H 11 | # define HEADER_EBCDIC_H 12 | 13 | # include 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | /* Avoid name clashes with other applications */ 20 | # define os_toascii _openssl_os_toascii 21 | # define os_toebcdic _openssl_os_toebcdic 22 | # define ebcdic2ascii _openssl_ebcdic2ascii 23 | # define ascii2ebcdic _openssl_ascii2ebcdic 24 | 25 | extern const unsigned char os_toascii[256]; 26 | extern const unsigned char os_toebcdic[256]; 27 | void *ebcdic2ascii(void *dest, const void *srce, size_t count); 28 | void *ascii2ebcdic(void *dest, const void *srce, size_t count); 29 | 30 | #ifdef __cplusplus 31 | } 32 | #endif 33 | #endif 34 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/ecdh.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/ecdsa.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/hmac.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_HMAC_H 11 | # define HEADER_HMAC_H 12 | 13 | # include 14 | 15 | # include 16 | 17 | # define HMAC_MAX_MD_CBLOCK 128/* largest known is SHA512 */ 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | size_t HMAC_size(const HMAC_CTX *e); 24 | HMAC_CTX *HMAC_CTX_new(void); 25 | int HMAC_CTX_reset(HMAC_CTX *ctx); 26 | void HMAC_CTX_free(HMAC_CTX *ctx); 27 | 28 | DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, 29 | const EVP_MD *md)) 30 | 31 | /*__owur*/ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, 32 | const EVP_MD *md, ENGINE *impl); 33 | /*__owur*/ int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, 34 | size_t len); 35 | /*__owur*/ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, 36 | unsigned int *len); 37 | unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, 38 | const unsigned char *d, size_t n, unsigned char *md, 39 | unsigned int *md_len); 40 | __owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx); 41 | 42 | void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags); 43 | const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx); 44 | 45 | #ifdef __cplusplus 46 | } 47 | #endif 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/idea.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_IDEA_H 11 | # define HEADER_IDEA_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_IDEA 16 | # ifdef __cplusplus 17 | extern "C" { 18 | # endif 19 | 20 | typedef unsigned int IDEA_INT; 21 | 22 | # define IDEA_ENCRYPT 1 23 | # define IDEA_DECRYPT 0 24 | 25 | # define IDEA_BLOCK 8 26 | # define IDEA_KEY_LENGTH 16 27 | 28 | typedef struct idea_key_st { 29 | IDEA_INT data[9][6]; 30 | } IDEA_KEY_SCHEDULE; 31 | 32 | const char *IDEA_options(void); 33 | void IDEA_ecb_encrypt(const unsigned char *in, unsigned char *out, 34 | IDEA_KEY_SCHEDULE *ks); 35 | void IDEA_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks); 36 | void IDEA_set_decrypt_key(IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk); 37 | void IDEA_cbc_encrypt(const unsigned char *in, unsigned char *out, 38 | long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, 39 | int enc); 40 | void IDEA_cfb64_encrypt(const unsigned char *in, unsigned char *out, 41 | long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, 42 | int *num, int enc); 43 | void IDEA_ofb64_encrypt(const unsigned char *in, unsigned char *out, 44 | long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, 45 | int *num); 46 | void IDEA_encrypt(unsigned long *in, IDEA_KEY_SCHEDULE *ks); 47 | 48 | # if OPENSSL_API_COMPAT < 0x10100000L 49 | # define idea_options IDEA_options 50 | # define idea_ecb_encrypt IDEA_ecb_encrypt 51 | # define idea_set_encrypt_key IDEA_set_encrypt_key 52 | # define idea_set_decrypt_key IDEA_set_decrypt_key 53 | # define idea_cbc_encrypt IDEA_cbc_encrypt 54 | # define idea_cfb64_encrypt IDEA_cfb64_encrypt 55 | # define idea_ofb64_encrypt IDEA_ofb64_encrypt 56 | # define idea_encrypt IDEA_encrypt 57 | # endif 58 | 59 | # ifdef __cplusplus 60 | } 61 | # endif 62 | # endif 63 | 64 | #endif 65 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/kdf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_KDF_H 11 | # define HEADER_KDF_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | # define EVP_PKEY_CTRL_TLS_MD (EVP_PKEY_ALG_CTRL) 18 | # define EVP_PKEY_CTRL_TLS_SECRET (EVP_PKEY_ALG_CTRL + 1) 19 | # define EVP_PKEY_CTRL_TLS_SEED (EVP_PKEY_ALG_CTRL + 2) 20 | # define EVP_PKEY_CTRL_HKDF_MD (EVP_PKEY_ALG_CTRL + 3) 21 | # define EVP_PKEY_CTRL_HKDF_SALT (EVP_PKEY_ALG_CTRL + 4) 22 | # define EVP_PKEY_CTRL_HKDF_KEY (EVP_PKEY_ALG_CTRL + 5) 23 | # define EVP_PKEY_CTRL_HKDF_INFO (EVP_PKEY_ALG_CTRL + 6) 24 | 25 | # define EVP_PKEY_CTX_set_tls1_prf_md(pctx, md) \ 26 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 27 | EVP_PKEY_CTRL_TLS_MD, 0, (void *)md) 28 | 29 | # define EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, sec, seclen) \ 30 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 31 | EVP_PKEY_CTRL_TLS_SECRET, seclen, (void *)sec) 32 | 33 | # define EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, seed, seedlen) \ 34 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 35 | EVP_PKEY_CTRL_TLS_SEED, seedlen, (void *)seed) 36 | 37 | # define EVP_PKEY_CTX_set_hkdf_md(pctx, md) \ 38 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 39 | EVP_PKEY_CTRL_HKDF_MD, 0, (void *)md) 40 | 41 | # define EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt, saltlen) \ 42 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 43 | EVP_PKEY_CTRL_HKDF_SALT, saltlen, (void *)salt) 44 | 45 | # define EVP_PKEY_CTX_set1_hkdf_key(pctx, key, keylen) \ 46 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 47 | EVP_PKEY_CTRL_HKDF_KEY, keylen, (void *)key) 48 | 49 | # define EVP_PKEY_CTX_add1_hkdf_info(pctx, info, infolen) \ 50 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 51 | EVP_PKEY_CTRL_HKDF_INFO, infolen, (void *)info) 52 | 53 | /* BEGIN ERROR CODES */ 54 | /* 55 | * The following lines are auto generated by the script mkerr.pl. Any changes 56 | * made after this point may be overwritten when the script is next run. 57 | */ 58 | 59 | int ERR_load_KDF_strings(void); 60 | 61 | /* Error codes for the KDF functions. */ 62 | 63 | /* Function codes. */ 64 | # define KDF_F_PKEY_TLS1_PRF_CTRL_STR 100 65 | # define KDF_F_PKEY_TLS1_PRF_DERIVE 101 66 | 67 | /* Reason codes. */ 68 | # define KDF_R_INVALID_DIGEST 100 69 | # define KDF_R_MISSING_PARAMETER 101 70 | # define KDF_R_VALUE_MISSING 102 71 | 72 | # ifdef __cplusplus 73 | } 74 | # endif 75 | #endif 76 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/md2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_MD2_H 11 | # define HEADER_MD2_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_MD2 16 | # include 17 | # ifdef __cplusplus 18 | extern "C" { 19 | # endif 20 | 21 | typedef unsigned char MD2_INT; 22 | 23 | # define MD2_DIGEST_LENGTH 16 24 | # define MD2_BLOCK 16 25 | 26 | typedef struct MD2state_st { 27 | unsigned int num; 28 | unsigned char data[MD2_BLOCK]; 29 | MD2_INT cksm[MD2_BLOCK]; 30 | MD2_INT state[MD2_BLOCK]; 31 | } MD2_CTX; 32 | 33 | const char *MD2_options(void); 34 | int MD2_Init(MD2_CTX *c); 35 | int MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len); 36 | int MD2_Final(unsigned char *md, MD2_CTX *c); 37 | unsigned char *MD2(const unsigned char *d, size_t n, unsigned char *md); 38 | 39 | # ifdef __cplusplus 40 | } 41 | # endif 42 | # endif 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/md4.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_MD4_H 11 | # define HEADER_MD4_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_MD4 16 | # include 17 | # include 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | /*- 23 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 24 | * ! MD4_LONG has to be at least 32 bits wide. ! 25 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 26 | */ 27 | # define MD4_LONG unsigned int 28 | 29 | # define MD4_CBLOCK 64 30 | # define MD4_LBLOCK (MD4_CBLOCK/4) 31 | # define MD4_DIGEST_LENGTH 16 32 | 33 | typedef struct MD4state_st { 34 | MD4_LONG A, B, C, D; 35 | MD4_LONG Nl, Nh; 36 | MD4_LONG data[MD4_LBLOCK]; 37 | unsigned int num; 38 | } MD4_CTX; 39 | 40 | int MD4_Init(MD4_CTX *c); 41 | int MD4_Update(MD4_CTX *c, const void *data, size_t len); 42 | int MD4_Final(unsigned char *md, MD4_CTX *c); 43 | unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md); 44 | void MD4_Transform(MD4_CTX *c, const unsigned char *b); 45 | 46 | # ifdef __cplusplus 47 | } 48 | # endif 49 | # endif 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/md5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_MD5_H 11 | # define HEADER_MD5_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_MD5 16 | # include 17 | # include 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | /* 23 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 24 | * ! MD5_LONG has to be at least 32 bits wide. ! 25 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 26 | */ 27 | # define MD5_LONG unsigned int 28 | 29 | # define MD5_CBLOCK 64 30 | # define MD5_LBLOCK (MD5_CBLOCK/4) 31 | # define MD5_DIGEST_LENGTH 16 32 | 33 | typedef struct MD5state_st { 34 | MD5_LONG A, B, C, D; 35 | MD5_LONG Nl, Nh; 36 | MD5_LONG data[MD5_LBLOCK]; 37 | unsigned int num; 38 | } MD5_CTX; 39 | 40 | int MD5_Init(MD5_CTX *c); 41 | int MD5_Update(MD5_CTX *c, const void *data, size_t len); 42 | int MD5_Final(unsigned char *md, MD5_CTX *c); 43 | unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); 44 | void MD5_Transform(MD5_CTX *c, const unsigned char *b); 45 | # ifdef __cplusplus 46 | } 47 | # endif 48 | # endif 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/mdc2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_MDC2_H 11 | # define HEADER_MDC2_H 12 | 13 | # include 14 | 15 | #ifndef OPENSSL_NO_MDC2 16 | # include 17 | # include 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # define MDC2_BLOCK 8 23 | # define MDC2_DIGEST_LENGTH 16 24 | 25 | typedef struct mdc2_ctx_st { 26 | unsigned int num; 27 | unsigned char data[MDC2_BLOCK]; 28 | DES_cblock h, hh; 29 | int pad_type; /* either 1 or 2, default 1 */ 30 | } MDC2_CTX; 31 | 32 | int MDC2_Init(MDC2_CTX *c); 33 | int MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len); 34 | int MDC2_Final(unsigned char *md, MDC2_CTX *c); 35 | unsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md); 36 | 37 | # ifdef __cplusplus 38 | } 39 | # endif 40 | # endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/opensslconf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Building OpenSSL for the different architectures of all iOS and tvOS devices requires different settings. 3 | * In order to be able to use assembly code on all devices, the choice was made to keep optimal settings for all 4 | * devices and use this intermediate header file to use the proper opensslconf.h file for each architecture. 5 | 6 | * See also https://github.com/x2on/OpenSSL-for-iPhone/issues/126 and referenced pull requests 7 | */ 8 | 9 | #include 10 | 11 | #if TARGET_OS_IOS && TARGET_OS_SIMULATOR && TARGET_CPU_X86_64 12 | # include 13 | #elif TARGET_OS_IOS && TARGET_OS_SIMULATOR && TARGET_CPU_X86 14 | # include 15 | #elif TARGET_OS_IOS && TARGET_OS_EMBEDDED && TARGET_CPU_ARM64 16 | # include 17 | #elif TARGET_OS_IOS && TARGET_OS_EMBEDDED && TARGET_CPU_ARM && defined(__ARM_ARCH_7S__) 18 | # include 19 | #elif TARGET_OS_IOS && TARGET_OS_EMBEDDED && TARGET_CPU_ARM && !defined(__ARM_ARCH_7S__) 20 | # include 21 | #elif TARGET_OS_TV && TARGET_OS_SIMULATOR && TARGET_CPU_X86_64 22 | # include 23 | #elif TARGET_OS_TV && TARGET_OS_EMBEDDED && TARGET_CPU_ARM64 24 | # include 25 | #else 26 | # error Unable to determine target or target not included in OpenSSL build 27 | #endif 28 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/pem2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #ifndef HEADER_PEM_H 15 | int ERR_load_PEM_strings(void); 16 | #endif 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/rand.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_RAND_H 11 | # define HEADER_RAND_H 12 | 13 | # include 14 | # include 15 | # include 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | /* Already defined in ossl_typ.h */ 22 | /* typedef struct rand_meth_st RAND_METHOD; */ 23 | 24 | struct rand_meth_st { 25 | int (*seed) (const void *buf, int num); 26 | int (*bytes) (unsigned char *buf, int num); 27 | void (*cleanup) (void); 28 | int (*add) (const void *buf, int num, double entropy); 29 | int (*pseudorand) (unsigned char *buf, int num); 30 | int (*status) (void); 31 | }; 32 | 33 | # ifdef BN_DEBUG 34 | extern int rand_predictable; 35 | # endif 36 | 37 | int RAND_set_rand_method(const RAND_METHOD *meth); 38 | const RAND_METHOD *RAND_get_rand_method(void); 39 | # ifndef OPENSSL_NO_ENGINE 40 | int RAND_set_rand_engine(ENGINE *engine); 41 | # endif 42 | RAND_METHOD *RAND_OpenSSL(void); 43 | #if OPENSSL_API_COMPAT < 0x10100000L 44 | # define RAND_cleanup() while(0) continue 45 | #endif 46 | int RAND_bytes(unsigned char *buf, int num); 47 | DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num)) 48 | void RAND_seed(const void *buf, int num); 49 | #if defined(__ANDROID__) && defined(__NDK_FPABI__) 50 | __NDK_FPABI__ /* __attribute__((pcs("aapcs"))) on ARM */ 51 | #endif 52 | void RAND_add(const void *buf, int num, double entropy); 53 | int RAND_load_file(const char *file, long max_bytes); 54 | int RAND_write_file(const char *file); 55 | const char *RAND_file_name(char *file, size_t num); 56 | int RAND_status(void); 57 | # ifndef OPENSSL_NO_EGD 58 | int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes); 59 | int RAND_egd(const char *path); 60 | int RAND_egd_bytes(const char *path, int bytes); 61 | # endif 62 | int RAND_poll(void); 63 | 64 | #if defined(_WIN32) && (defined(BASETYPES) || defined(_WINDEF_H)) 65 | /* application has to include in order to use these */ 66 | DEPRECATEDIN_1_1_0(void RAND_screen(void)) 67 | DEPRECATEDIN_1_1_0(int RAND_event(UINT, WPARAM, LPARAM)) 68 | #endif 69 | 70 | /* BEGIN ERROR CODES */ 71 | /* 72 | * The following lines are auto generated by the script mkerr.pl. Any changes 73 | * made after this point may be overwritten when the script is next run. 74 | */ 75 | 76 | int ERR_load_RAND_strings(void); 77 | 78 | /* Error codes for the RAND functions. */ 79 | 80 | /* Function codes. */ 81 | # define RAND_F_RAND_BYTES 100 82 | 83 | /* Reason codes. */ 84 | # define RAND_R_PRNG_NOT_SEEDED 100 85 | 86 | # ifdef __cplusplus 87 | } 88 | # endif 89 | #endif 90 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/rc2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_RC2_H 11 | # define HEADER_RC2_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_RC2 16 | # ifdef __cplusplus 17 | extern "C" { 18 | # endif 19 | 20 | typedef unsigned int RC2_INT; 21 | 22 | # define RC2_ENCRYPT 1 23 | # define RC2_DECRYPT 0 24 | 25 | # define RC2_BLOCK 8 26 | # define RC2_KEY_LENGTH 16 27 | 28 | typedef struct rc2_key_st { 29 | RC2_INT data[64]; 30 | } RC2_KEY; 31 | 32 | void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits); 33 | void RC2_ecb_encrypt(const unsigned char *in, unsigned char *out, 34 | RC2_KEY *key, int enc); 35 | void RC2_encrypt(unsigned long *data, RC2_KEY *key); 36 | void RC2_decrypt(unsigned long *data, RC2_KEY *key); 37 | void RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, 38 | RC2_KEY *ks, unsigned char *iv, int enc); 39 | void RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out, 40 | long length, RC2_KEY *schedule, unsigned char *ivec, 41 | int *num, int enc); 42 | void RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out, 43 | long length, RC2_KEY *schedule, unsigned char *ivec, 44 | int *num); 45 | 46 | # ifdef __cplusplus 47 | } 48 | # endif 49 | # endif 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/rc4.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_RC4_H 11 | # define HEADER_RC4_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_RC4 16 | # include 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | typedef struct rc4_key_st { 22 | RC4_INT x, y; 23 | RC4_INT data[256]; 24 | } RC4_KEY; 25 | 26 | const char *RC4_options(void); 27 | void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); 28 | void RC4(RC4_KEY *key, size_t len, const unsigned char *indata, 29 | unsigned char *outdata); 30 | 31 | # ifdef __cplusplus 32 | } 33 | # endif 34 | # endif 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/rc5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_RC5_H 11 | # define HEADER_RC5_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_RC5 16 | # ifdef __cplusplus 17 | extern "C" { 18 | # endif 19 | 20 | # define RC5_ENCRYPT 1 21 | # define RC5_DECRYPT 0 22 | 23 | # define RC5_32_INT unsigned int 24 | 25 | # define RC5_32_BLOCK 8 26 | # define RC5_32_KEY_LENGTH 16/* This is a default, max is 255 */ 27 | 28 | /* 29 | * This are the only values supported. Tweak the code if you want more The 30 | * most supported modes will be RC5-32/12/16 RC5-32/16/8 31 | */ 32 | # define RC5_8_ROUNDS 8 33 | # define RC5_12_ROUNDS 12 34 | # define RC5_16_ROUNDS 16 35 | 36 | typedef struct rc5_key_st { 37 | /* Number of rounds */ 38 | int rounds; 39 | RC5_32_INT data[2 * (RC5_16_ROUNDS + 1)]; 40 | } RC5_32_KEY; 41 | 42 | void RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data, 43 | int rounds); 44 | void RC5_32_ecb_encrypt(const unsigned char *in, unsigned char *out, 45 | RC5_32_KEY *key, int enc); 46 | void RC5_32_encrypt(unsigned long *data, RC5_32_KEY *key); 47 | void RC5_32_decrypt(unsigned long *data, RC5_32_KEY *key); 48 | void RC5_32_cbc_encrypt(const unsigned char *in, unsigned char *out, 49 | long length, RC5_32_KEY *ks, unsigned char *iv, 50 | int enc); 51 | void RC5_32_cfb64_encrypt(const unsigned char *in, unsigned char *out, 52 | long length, RC5_32_KEY *schedule, 53 | unsigned char *ivec, int *num, int enc); 54 | void RC5_32_ofb64_encrypt(const unsigned char *in, unsigned char *out, 55 | long length, RC5_32_KEY *schedule, 56 | unsigned char *ivec, int *num); 57 | 58 | # ifdef __cplusplus 59 | } 60 | # endif 61 | # endif 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/ripemd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_RIPEMD_H 11 | # define HEADER_RIPEMD_H 12 | 13 | # include 14 | 15 | #ifndef OPENSSL_NO_RMD160 16 | # include 17 | # include 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # define RIPEMD160_LONG unsigned int 23 | 24 | # define RIPEMD160_CBLOCK 64 25 | # define RIPEMD160_LBLOCK (RIPEMD160_CBLOCK/4) 26 | # define RIPEMD160_DIGEST_LENGTH 20 27 | 28 | typedef struct RIPEMD160state_st { 29 | RIPEMD160_LONG A, B, C, D, E; 30 | RIPEMD160_LONG Nl, Nh; 31 | RIPEMD160_LONG data[RIPEMD160_LBLOCK]; 32 | unsigned int num; 33 | } RIPEMD160_CTX; 34 | 35 | int RIPEMD160_Init(RIPEMD160_CTX *c); 36 | int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, size_t len); 37 | int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c); 38 | unsigned char *RIPEMD160(const unsigned char *d, size_t n, unsigned char *md); 39 | void RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b); 40 | 41 | # ifdef __cplusplus 42 | } 43 | # endif 44 | # endif 45 | 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/srtp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * DTLS code by Eric Rescorla 12 | * 13 | * Copyright (C) 2006, Network Resonance, Inc. Copyright (C) 2011, RTFM, Inc. 14 | */ 15 | 16 | #ifndef HEADER_D1_SRTP_H 17 | # define HEADER_D1_SRTP_H 18 | 19 | # include 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | # define SRTP_AES128_CM_SHA1_80 0x0001 26 | # define SRTP_AES128_CM_SHA1_32 0x0002 27 | # define SRTP_AES128_F8_SHA1_80 0x0003 28 | # define SRTP_AES128_F8_SHA1_32 0x0004 29 | # define SRTP_NULL_SHA1_80 0x0005 30 | # define SRTP_NULL_SHA1_32 0x0006 31 | 32 | /* AEAD SRTP protection profiles from RFC 7714 */ 33 | # define SRTP_AEAD_AES_128_GCM 0x0007 34 | # define SRTP_AEAD_AES_256_GCM 0x0008 35 | 36 | # ifndef OPENSSL_NO_SRTP 37 | 38 | __owur int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles); 39 | __owur int SSL_set_tlsext_use_srtp(SSL *ctx, const char *profiles); 40 | 41 | __owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl); 42 | __owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s); 43 | 44 | # endif 45 | 46 | #ifdef __cplusplus 47 | } 48 | #endif 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/ssl2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_SSL2_H 11 | # define HEADER_SSL2_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | # define SSL2_VERSION 0x0002 18 | 19 | # define SSL2_MT_CLIENT_HELLO 1 20 | 21 | #ifdef __cplusplus 22 | } 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/stack.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_STACK_H 11 | # define HEADER_STACK_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | typedef struct stack_st OPENSSL_STACK; /* Use STACK_OF(...) instead */ 18 | 19 | typedef int (*OPENSSL_sk_compfunc)(const void *, const void *); 20 | typedef void (*OPENSSL_sk_freefunc)(void *); 21 | typedef void *(*OPENSSL_sk_copyfunc)(const void *); 22 | 23 | int OPENSSL_sk_num(const OPENSSL_STACK *); 24 | void *OPENSSL_sk_value(const OPENSSL_STACK *, int); 25 | 26 | void *OPENSSL_sk_set(OPENSSL_STACK *st, int i, const void *data); 27 | 28 | OPENSSL_STACK *OPENSSL_sk_new(OPENSSL_sk_compfunc cmp); 29 | OPENSSL_STACK *OPENSSL_sk_new_null(void); 30 | void OPENSSL_sk_free(OPENSSL_STACK *); 31 | void OPENSSL_sk_pop_free(OPENSSL_STACK *st, void (*func) (void *)); 32 | OPENSSL_STACK *OPENSSL_sk_deep_copy(const OPENSSL_STACK *, OPENSSL_sk_copyfunc c, OPENSSL_sk_freefunc f); 33 | int OPENSSL_sk_insert(OPENSSL_STACK *sk, const void *data, int where); 34 | void *OPENSSL_sk_delete(OPENSSL_STACK *st, int loc); 35 | void *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p); 36 | int OPENSSL_sk_find(OPENSSL_STACK *st, const void *data); 37 | int OPENSSL_sk_find_ex(OPENSSL_STACK *st, const void *data); 38 | int OPENSSL_sk_push(OPENSSL_STACK *st, const void *data); 39 | int OPENSSL_sk_unshift(OPENSSL_STACK *st, const void *data); 40 | void *OPENSSL_sk_shift(OPENSSL_STACK *st); 41 | void *OPENSSL_sk_pop(OPENSSL_STACK *st); 42 | void OPENSSL_sk_zero(OPENSSL_STACK *st); 43 | OPENSSL_sk_compfunc OPENSSL_sk_set_cmp_func(OPENSSL_STACK *sk, OPENSSL_sk_compfunc cmp); 44 | OPENSSL_STACK *OPENSSL_sk_dup(const OPENSSL_STACK *st); 45 | void OPENSSL_sk_sort(OPENSSL_STACK *st); 46 | int OPENSSL_sk_is_sorted(const OPENSSL_STACK *st); 47 | 48 | # if OPENSSL_API_COMPAT < 0x10100000L 49 | # define _STACK OPENSSL_STACK 50 | # define sk_num OPENSSL_sk_num 51 | # define sk_value OPENSSL_sk_value 52 | # define sk_set OPENSSL_sk_set 53 | # define sk_new OPENSSL_sk_new 54 | # define sk_new_null OPENSSL_sk_new_null 55 | # define sk_free OPENSSL_sk_free 56 | # define sk_pop_free OPENSSL_sk_pop_free 57 | # define sk_deep_copy OPENSSL_sk_deep_copy 58 | # define sk_insert OPENSSL_sk_insert 59 | # define sk_delete OPENSSL_sk_delete 60 | # define sk_delete_ptr OPENSSL_sk_delete_ptr 61 | # define sk_find OPENSSL_sk_find 62 | # define sk_find_ex OPENSSL_sk_find_ex 63 | # define sk_push OPENSSL_sk_push 64 | # define sk_unshift OPENSSL_sk_unshift 65 | # define sk_shift OPENSSL_sk_shift 66 | # define sk_pop OPENSSL_sk_pop 67 | # define sk_zero OPENSSL_sk_zero 68 | # define sk_set_cmp_func OPENSSL_sk_set_cmp_func 69 | # define sk_dup OPENSSL_sk_dup 70 | # define sk_sort OPENSSL_sk_sort 71 | # define sk_is_sorted OPENSSL_sk_is_sorted 72 | # endif 73 | 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | 78 | #endif 79 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/symhacks.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_SYMHACKS_H 11 | # define HEADER_SYMHACKS_H 12 | 13 | # include 14 | 15 | /* Case insensitive linking causes problems.... */ 16 | # if defined(OPENSSL_SYS_VMS) 17 | # undef ERR_load_CRYPTO_strings 18 | # define ERR_load_CRYPTO_strings ERR_load_CRYPTOlib_strings 19 | # undef OCSP_crlID_new 20 | # define OCSP_crlID_new OCSP_crlID2_new 21 | 22 | # undef d2i_ECPARAMETERS 23 | # define d2i_ECPARAMETERS d2i_UC_ECPARAMETERS 24 | # undef i2d_ECPARAMETERS 25 | # define i2d_ECPARAMETERS i2d_UC_ECPARAMETERS 26 | # undef d2i_ECPKPARAMETERS 27 | # define d2i_ECPKPARAMETERS d2i_UC_ECPKPARAMETERS 28 | # undef i2d_ECPKPARAMETERS 29 | # define i2d_ECPKPARAMETERS i2d_UC_ECPKPARAMETERS 30 | 31 | /* 32 | * These functions do not seem to exist! However, I'm paranoid... Original 33 | * command in x509v3.h: These functions are being redefined in another 34 | * directory, and clash when the linker is case-insensitive, so let's hide 35 | * them a little, by giving them an extra 'o' at the beginning of the name... 36 | */ 37 | # undef X509v3_cleanup_extensions 38 | # define X509v3_cleanup_extensions oX509v3_cleanup_extensions 39 | # undef X509v3_add_extension 40 | # define X509v3_add_extension oX509v3_add_extension 41 | # undef X509v3_add_netscape_extensions 42 | # define X509v3_add_netscape_extensions oX509v3_add_netscape_extensions 43 | # undef X509v3_add_standard_extensions 44 | # define X509v3_add_standard_extensions oX509v3_add_standard_extensions 45 | 46 | /* This one clashes with CMS_data_create */ 47 | # undef cms_Data_create 48 | # define cms_Data_create priv_cms_Data_create 49 | 50 | # endif 51 | 52 | #endif /* ! defined HEADER_VMS_IDHACKS_H */ 53 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/txt_db.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_TXT_DB_H 11 | # define HEADER_TXT_DB_H 12 | 13 | # include 14 | # include 15 | # include 16 | # include 17 | 18 | # define DB_ERROR_OK 0 19 | # define DB_ERROR_MALLOC 1 20 | # define DB_ERROR_INDEX_CLASH 2 21 | # define DB_ERROR_INDEX_OUT_OF_RANGE 3 22 | # define DB_ERROR_NO_INDEX 4 23 | # define DB_ERROR_INSERT_INDEX_CLASH 5 24 | # define DB_ERROR_WRONG_NUM_FIELDS 6 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | typedef OPENSSL_STRING *OPENSSL_PSTRING; 31 | DEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING) 32 | 33 | typedef struct txt_db_st { 34 | int num_fields; 35 | STACK_OF(OPENSSL_PSTRING) *data; 36 | LHASH_OF(OPENSSL_STRING) **index; 37 | int (**qual) (OPENSSL_STRING *); 38 | long error; 39 | long arg1; 40 | long arg2; 41 | OPENSSL_STRING *arg_row; 42 | } TXT_DB; 43 | 44 | TXT_DB *TXT_DB_read(BIO *in, int num); 45 | long TXT_DB_write(BIO *out, TXT_DB *db); 46 | int TXT_DB_create_index(TXT_DB *db, int field, int (*qual) (OPENSSL_STRING *), 47 | OPENSSL_LH_HASHFUNC hash, OPENSSL_LH_COMPFUNC cmp); 48 | void TXT_DB_free(TXT_DB *db); 49 | OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, 50 | OPENSSL_STRING *value); 51 | int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value); 52 | 53 | #ifdef __cplusplus 54 | } 55 | #endif 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Headers/whrlpool.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_WHRLPOOL_H 11 | # define HEADER_WHRLPOOL_H 12 | 13 | #include 14 | 15 | # ifndef OPENSSL_NO_WHIRLPOOL 16 | # include 17 | # include 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # define WHIRLPOOL_DIGEST_LENGTH (512/8) 23 | # define WHIRLPOOL_BBLOCK 512 24 | # define WHIRLPOOL_COUNTER (256/8) 25 | 26 | typedef struct { 27 | union { 28 | unsigned char c[WHIRLPOOL_DIGEST_LENGTH]; 29 | /* double q is here to ensure 64-bit alignment */ 30 | double q[WHIRLPOOL_DIGEST_LENGTH / sizeof(double)]; 31 | } H; 32 | unsigned char data[WHIRLPOOL_BBLOCK / 8]; 33 | unsigned int bitoff; 34 | size_t bitlen[WHIRLPOOL_COUNTER / sizeof(size_t)]; 35 | } WHIRLPOOL_CTX; 36 | 37 | int WHIRLPOOL_Init(WHIRLPOOL_CTX *c); 38 | int WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *inp, size_t bytes); 39 | void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *inp, size_t bits); 40 | int WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c); 41 | unsigned char *WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md); 42 | 43 | # ifdef __cplusplus 44 | } 45 | # endif 46 | # endif 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIcons 12 | 13 | CFBundleIcons~ipad 14 | 15 | CFBundleIdentifier 16 | $(PRODUCT_BUNDLE_IDENTIFIER) 17 | CFBundleInfoDictionaryVersion 18 | 6.0 19 | CFBundleName 20 | ${PRODUCT_NAME} 21 | CFBundlePackageType 22 | APPL 23 | CFBundleShortVersionString 24 | 3.1 25 | CFBundleSignature 26 | ???? 27 | CFBundleVersion 28 | 1 29 | LSRequiresIPhoneOS 30 | 31 | UIApplicationExitsOnSuspend 32 | 33 | UIRequiredDeviceCapabilities 34 | 35 | armv7 36 | 37 | UIStatusBarStyle 38 | UIStatusBarStyleDefault 39 | UISupportedInterfaceOrientations 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | UISupportedInterfaceOrientations~ipad 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationPortraitUpsideDown 50 | UIInterfaceOrientationLandscapeLeft 51 | UIInterfaceOrientationLandscapeRight 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Pods/Criollo/Libraries/OpenSSL/openssl.framework/openssl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umeshiscreative/AVSQLDebugger/4e60d6093d77169b2f144b4c38441c767b3bec09/Pods/Criollo/Libraries/OpenSSL/openssl.framework/openssl -------------------------------------------------------------------------------- /Pods/Local Podspecs/AVSQLDebugger.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AVSQLDebugger", 3 | "version": "1.0.1", 4 | "summary": "A framework to easily debug your data storage in apps..", 5 | "platforms": { 6 | "ios": "10.0" 7 | }, 8 | "authors": "Umesh Verma", 9 | "license": { 10 | "type": "MIT", 11 | "file": "LICENSE" 12 | }, 13 | "homepage": "https://github.com/umeshiscreative/AVSQLDebugger", 14 | "source": { 15 | "git": "https://github.com/umeshiscreative/AVSQLDebugger.git", 16 | "tag": "1.0.1" 17 | }, 18 | "source_files": [ 19 | "AVSQLDebugger/AVSQLDebugger/**/*.{h,m,swift}" 20 | ], 21 | "resources": [ 22 | "AVSQLDebugger/AVSQLDebugger/**/*.{html,js,css}" 23 | ], 24 | "requires_arc": true, 25 | "dependencies": { 26 | "Criollo": [ 27 | "~> 0.4" 28 | ] 29 | }, 30 | "pod_target_xcconfig": { 31 | "SWIFT_VERSION": "5.0" 32 | }, 33 | "swift_versions": "5.0", 34 | "swift_version": "5.0" 35 | } 36 | -------------------------------------------------------------------------------- /Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AVSQLDebugger (1.0.1): 3 | - Criollo (~> 0.4) 4 | - CocoaAsyncSocket (7.6.3) 5 | - Criollo (0.5.5): 6 | - CocoaAsyncSocket (~> 7.6) 7 | 8 | DEPENDENCIES: 9 | - AVSQLDebugger (from `./`) 10 | - Criollo (~> 0.4) 11 | 12 | SPEC REPOS: 13 | https://github.com/cocoapods/specs.git: 14 | - CocoaAsyncSocket 15 | - Criollo 16 | 17 | EXTERNAL SOURCES: 18 | AVSQLDebugger: 19 | :path: "./" 20 | 21 | SPEC CHECKSUMS: 22 | AVSQLDebugger: 93112c18fd40c1d9572d9a6c219dde462305c532 23 | CocoaAsyncSocket: eafaa68a7e0ec99ead0a7b35015e0bf25d2c8987 24 | Criollo: 617173837c296ca4248b0b058f36ce9b91e5c25b 25 | 26 | PODFILE CHECKSUM: 60e83a25011ac8e7b80a8a09e4fd44305d036425 27 | 28 | COCOAPODS: 1.7.5 29 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AVSQLDebugger/AVSQLDebugger-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AVSQLDebugger/AVSQLDebugger-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_AVSQLDebugger : NSObject 3 | @end 4 | @implementation PodsDummy_AVSQLDebugger 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AVSQLDebugger/AVSQLDebugger-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AVSQLDebugger/AVSQLDebugger-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "AVSQLDebugger.h" 14 | #import "SystemInfoHelper.h" 15 | 16 | FOUNDATION_EXPORT double AVSQLDebuggerVersionNumber; 17 | FOUNDATION_EXPORT const unsigned char AVSQLDebuggerVersionString[]; 18 | 19 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AVSQLDebugger/AVSQLDebugger.modulemap: -------------------------------------------------------------------------------- 1 | framework module AVSQLDebugger { 2 | umbrella header "AVSQLDebugger-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AVSQLDebugger/AVSQLDebugger.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/AVSQLDebugger 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo" "${PODS_ROOT}/Criollo/Libraries/OpenSSL" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | SWIFT_VERSION = 5.0 12 | -------------------------------------------------------------------------------- /Pods/Target Support Files/CocoaAsyncSocket/CocoaAsyncSocket-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 7.6.3 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/CocoaAsyncSocket/CocoaAsyncSocket-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_CocoaAsyncSocket : NSObject 3 | @end 4 | @implementation PodsDummy_CocoaAsyncSocket 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/CocoaAsyncSocket/CocoaAsyncSocket-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Pods/Target Support Files/CocoaAsyncSocket/CocoaAsyncSocket-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "GCDAsyncSocket.h" 14 | #import "GCDAsyncUdpSocket.h" 15 | 16 | FOUNDATION_EXPORT double CocoaAsyncSocketVersionNumber; 17 | FOUNDATION_EXPORT const unsigned char CocoaAsyncSocketVersionString[]; 18 | 19 | -------------------------------------------------------------------------------- /Pods/Target Support Files/CocoaAsyncSocket/CocoaAsyncSocket.modulemap: -------------------------------------------------------------------------------- 1 | framework module CocoaAsyncSocket { 2 | umbrella header "CocoaAsyncSocket-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/CocoaAsyncSocket/CocoaAsyncSocket.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = $(inherited) -framework "CFNetwork" -framework "Security" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/CocoaAsyncSocket 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Criollo/Criollo-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.5.5 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Criollo/Criollo-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Criollo : NSObject 3 | @end 4 | @implementation PodsDummy_Criollo 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Criollo/Criollo-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Criollo/Criollo-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "Criollo.h" 14 | #import "CRTypes.h" 15 | #import "CRApplication.h" 16 | #import "CRRouter.h" 17 | #import "CRServer.h" 18 | #import "CRConnection.h" 19 | #import "CRMessage.h" 20 | #import "CRRequest.h" 21 | #import "CRRequestRange.h" 22 | #import "CRUploadedFile.h" 23 | #import "CRResponse.h" 24 | #import "CRHTTPServer.h" 25 | #import "CRFCGIServer.h" 26 | #import "CRRouteController.h" 27 | #import "CRNib.h" 28 | #import "CRView.h" 29 | #import "CRViewController.h" 30 | #import "CRMimeTypeHelper.h" 31 | 32 | FOUNDATION_EXPORT double CriolloVersionNumber; 33 | FOUNDATION_EXPORT const unsigned char CriolloVersionString[]; 34 | 35 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Criollo/Criollo.modulemap: -------------------------------------------------------------------------------- 1 | framework module Criollo { 2 | umbrella header "Criollo-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Criollo/Criollo.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Criollo 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket" "${PODS_ROOT}/Criollo/Libraries/OpenSSL" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_LDFLAGS = $(inherited) -framework "openssl" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/Criollo 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AVSQLDebugger/Pods-AVSQLDebugger-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AVSQLDebugger/Pods-AVSQLDebugger-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## CocoaAsyncSocket 5 | 6 | Public Domain License 7 | 8 | The CocoaAsyncSocket project is in the public domain. 9 | 10 | The original TCP version (AsyncSocket) was created by Dustin Voss in January 2003. 11 | Updated and maintained by Deusty LLC and the Apple development community. 12 | 13 | 14 | ## Criollo 15 | 16 | Copyright (c) 2012–2016 Cătălin Stan (https://twitter.com/catalinstan) 17 | 18 | Permission is hereby granted, free of charge, to any person obtaining a copy 19 | of this software and associated documentation files (the "Software"), to deal 20 | in the Software without restriction, including without limitation the rights 21 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 22 | copies of the Software, and to permit persons to whom the Software is 23 | furnished to do so, subject to the following conditions: 24 | 25 | The above copyright notice and this permission notice shall be included in 26 | all copies or substantial portions of the Software. 27 | 28 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 29 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 30 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 31 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 32 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 33 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 34 | THE SOFTWARE. 35 | Generated by CocoaPods - https://cocoapods.org 36 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AVSQLDebugger/Pods-AVSQLDebugger-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Public Domain License 18 | 19 | The CocoaAsyncSocket project is in the public domain. 20 | 21 | The original TCP version (AsyncSocket) was created by Dustin Voss in January 2003. 22 | Updated and maintained by Deusty LLC and the Apple development community. 23 | 24 | License 25 | public domain 26 | Title 27 | CocoaAsyncSocket 28 | Type 29 | PSGroupSpecifier 30 | 31 | 32 | FooterText 33 | Copyright (c) 2012–2016 Cătălin Stan (https://twitter.com/catalinstan) 34 | 35 | Permission is hereby granted, free of charge, to any person obtaining a copy 36 | of this software and associated documentation files (the "Software"), to deal 37 | in the Software without restriction, including without limitation the rights 38 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 39 | copies of the Software, and to permit persons to whom the Software is 40 | furnished to do so, subject to the following conditions: 41 | 42 | The above copyright notice and this permission notice shall be included in 43 | all copies or substantial portions of the Software. 44 | 45 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 46 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 47 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 48 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 49 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 50 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 51 | THE SOFTWARE. 52 | License 53 | MIT 54 | Title 55 | Criollo 56 | Type 57 | PSGroupSpecifier 58 | 59 | 60 | FooterText 61 | Generated by CocoaPods - https://cocoapods.org 62 | Title 63 | 64 | Type 65 | PSGroupSpecifier 66 | 67 | 68 | StringsTable 69 | Acknowledgements 70 | Title 71 | Acknowledgements 72 | 73 | 74 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AVSQLDebugger/Pods-AVSQLDebugger-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AVSQLDebugger : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AVSQLDebugger 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AVSQLDebugger/Pods-AVSQLDebugger-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_AVSQLDebuggerVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AVSQLDebuggerVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AVSQLDebugger/Pods-AVSQLDebugger.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo" "${PODS_ROOT}/Criollo/Libraries/OpenSSL" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket/CocoaAsyncSocket.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo/Criollo.framework/Headers" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/../../Frameworks' 5 | OTHER_LDFLAGS = $(inherited) -ObjC -framework "CFNetwork" -framework "CocoaAsyncSocket" -framework "Criollo" -framework "Security" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.. 9 | PODS_ROOT = ${SRCROOT}/../Pods 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AVSQLDebugger/Pods-AVSQLDebugger.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AVSQLDebugger { 2 | umbrella header "Pods-AVSQLDebugger-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AVSQLDebugger/Pods-AVSQLDebugger.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo" "${PODS_ROOT}/Criollo/Libraries/OpenSSL" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket/CocoaAsyncSocket.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo/Criollo.framework/Headers" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/../../Frameworks' 5 | OTHER_LDFLAGS = $(inherited) -ObjC -framework "CFNetwork" -framework "CocoaAsyncSocket" -framework "Criollo" -framework "Security" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.. 9 | PODS_ROOT = ${SRCROOT}/../Pods 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-Example/Pods-Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-Example/Pods-Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## CocoaAsyncSocket 5 | 6 | Public Domain License 7 | 8 | The CocoaAsyncSocket project is in the public domain. 9 | 10 | The original TCP version (AsyncSocket) was created by Dustin Voss in January 2003. 11 | Updated and maintained by Deusty LLC and the Apple development community. 12 | 13 | 14 | ## Criollo 15 | 16 | Copyright (c) 2012–2016 Cătălin Stan (https://twitter.com/catalinstan) 17 | 18 | Permission is hereby granted, free of charge, to any person obtaining a copy 19 | of this software and associated documentation files (the "Software"), to deal 20 | in the Software without restriction, including without limitation the rights 21 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 22 | copies of the Software, and to permit persons to whom the Software is 23 | furnished to do so, subject to the following conditions: 24 | 25 | The above copyright notice and this permission notice shall be included in 26 | all copies or substantial portions of the Software. 27 | 28 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 29 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 30 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 31 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 32 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 33 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 34 | THE SOFTWARE. 35 | 36 | ## AVSQLDebugger 37 | 38 | MIT License 39 | 40 | Copyright (c) 2019 Umesh Verma 41 | 42 | Permission is hereby granted, free of charge, to any person obtaining a copy 43 | of this software and associated documentation files (the "Software"), to deal 44 | in the Software without restriction, including without limitation the rights 45 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 46 | copies of the Software, and to permit persons to whom the Software is 47 | furnished to do so, subject to the following conditions: 48 | 49 | The above copyright notice and this permission notice shall be included in all 50 | copies or substantial portions of the Software. 51 | 52 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 53 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 54 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 55 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 56 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 57 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 58 | SOFTWARE. 59 | 60 | Generated by CocoaPods - https://cocoapods.org 61 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-Example/Pods-Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-Example/Pods-Example-frameworks-Debug-input-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${PODS_ROOT}/Target Support Files/Pods-Example/Pods-Example-frameworks.sh 2 | ${BUILT_PRODUCTS_DIR}/CocoaAsyncSocket/CocoaAsyncSocket.framework 3 | ${BUILT_PRODUCTS_DIR}/Criollo/Criollo.framework 4 | ${BUILT_PRODUCTS_DIR}/AVSQLDebugger/AVSQLDebugger.framework -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-Example/Pods-Example-frameworks-Debug-output-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CocoaAsyncSocket.framework 2 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Criollo.framework 3 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AVSQLDebugger.framework -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-Example/Pods-Example-frameworks-Release-input-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${PODS_ROOT}/Target Support Files/Pods-Example/Pods-Example-frameworks.sh 2 | ${BUILT_PRODUCTS_DIR}/CocoaAsyncSocket/CocoaAsyncSocket.framework 3 | ${BUILT_PRODUCTS_DIR}/Criollo/Criollo.framework 4 | ${BUILT_PRODUCTS_DIR}/AVSQLDebugger/AVSQLDebugger.framework -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-Example/Pods-Example-frameworks-Release-output-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CocoaAsyncSocket.framework 2 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Criollo.framework 3 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AVSQLDebugger.framework -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-Example/Pods-Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AVSQLDebugger" "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo" "${PODS_ROOT}/Criollo/Libraries/OpenSSL" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AVSQLDebugger/AVSQLDebugger.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket/CocoaAsyncSocket.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo/Criollo.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -ObjC -framework "AVSQLDebugger" -framework "CFNetwork" -framework "CocoaAsyncSocket" -framework "Criollo" -framework "Security" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.. 11 | PODS_ROOT = ${SRCROOT}/../Pods 12 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-Example/Pods-Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_Example { 2 | umbrella header "Pods-Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AVSQLDebugger" "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo" "${PODS_ROOT}/Criollo/Libraries/OpenSSL" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AVSQLDebugger/AVSQLDebugger.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket/CocoaAsyncSocket.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo/Criollo.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -ObjC -framework "AVSQLDebugger" -framework "CFNetwork" -framework "CocoaAsyncSocket" -framework "Criollo" -framework "Security" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.. 11 | PODS_ROOT = ${SRCROOT}/../Pods 12 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ExampleTests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ExampleTests 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_ExampleTestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ExampleTestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AVSQLDebugger" "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo" "${PODS_ROOT}/Criollo/Libraries/OpenSSL" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AVSQLDebugger/AVSQLDebugger.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket/CocoaAsyncSocket.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo/Criollo.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "AVSQLDebugger" -framework "CFNetwork" -framework "CocoaAsyncSocket" -framework "Criollo" -framework "Security" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.. 8 | PODS_ROOT = ${SRCROOT}/../Pods 9 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ExampleTests { 2 | umbrella header "Pods-ExampleTests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AVSQLDebugger" "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo" "${PODS_ROOT}/Criollo/Libraries/OpenSSL" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AVSQLDebugger/AVSQLDebugger.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/CocoaAsyncSocket/CocoaAsyncSocket.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Criollo/Criollo.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "AVSQLDebugger" -framework "CFNetwork" -framework "CocoaAsyncSocket" -framework "Criollo" -framework "Security" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.. 8 | PODS_ROOT = ${SRCROOT}/../Pods 9 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman --------------------------------------------------------------------------------