From ae3ccd807f96d09eacdb7cf87609068b8d7f89b3 Mon Sep 17 00:00:00 2001 From: Carlos Cabanero Date: Tue, 14 Jun 2016 13:37:22 -0400 Subject: [PATCH] Hello world --- .clang-format | 50 + .gitignore | 32 + .gitmodules | 6 + AUTHORS | 1 + BUILD | 81 ++ Blink.xcodeproj/project.pbxproj | 845 +++++++++++++ .../contents.xcworkspacedata | 7 + Blink/AppDelegate.h | 38 + Blink/AppDelegate.m | 89 ++ Blink/Base.lproj/LaunchScreen.storyboard | 27 + Blink/Base.lproj/Main.storyboard | 27 + Blink/DismissSegue.h | 36 + Blink/DismissSegue.m | 42 + Blink/Info.plist | 41 + Blink/PKCardCreateViewController.h | 44 + Blink/PKCardCreateViewController.m | 127 ++ Blink/PKCardDetailsViewController.h | 41 + Blink/PKCardDetailsViewController.m | 106 ++ Blink/PKCardViewController.h | 37 + Blink/PKCardViewController.m | 245 ++++ Blink/Settings.storyboard | 502 ++++++++ Blink/SmartKeys.h | 38 + Blink/SmartKeys.m | 77 ++ Blink/SmartKeys.xib | 324 +++++ Blink/SmartKeysView.h | 54 + Blink/SmartKeysView.m | 93 ++ Blink/SpaceController.h | 37 + Blink/SpaceController.m | 366 ++++++ Blink/TermController.h | 49 + Blink/TermController.m | 154 +++ Blink/TermView.h | 53 + Blink/TermView.m | 537 ++++++++ Blink/fterm.h | 42 + Blink/fterm.m | 74 ++ BlinkUITests/BlinkUITests.m | 40 + BlinkUITests/Info.plist | 24 + CHANGELOG.md | 56 + COPYING | 710 +++++++++++ Frameworks/MBProgressHUD | 1 + Frameworks/UICKeyChainStore | 1 + .../AppIcon.appiconset/Contents.json | 86 ++ Media.xcassets/AppIcon.appiconset/Icon-40.png | Bin 0 -> 3820 bytes .../AppIcon.appiconset/Icon-40@2x.png | Bin 0 -> 6036 bytes .../AppIcon.appiconset/Icon-40@3x.png | Bin 0 -> 9192 bytes .../AppIcon.appiconset/Icon-60@2x.png | Bin 0 -> 9192 bytes .../AppIcon.appiconset/Icon-60@3x.png | Bin 0 -> 14984 bytes Media.xcassets/AppIcon.appiconset/Icon-76.png | Bin 0 -> 5799 bytes .../AppIcon.appiconset/Icon-76@2x.png | Bin 0 -> 12115 bytes .../AppIcon.appiconset/Icon-83.5@2x.png | Bin 0 -> 13640 bytes .../AppIcon.appiconset/Icon-Small.png | Bin 0 -> 3448 bytes .../AppIcon.appiconset/Icon-Small@2x.png | Bin 0 -> 4663 bytes .../AppIcon.appiconset/Icon-Small@3x.png | Bin 0 -> 6466 bytes Media.xcassets/Contents.json | 6 + Media.xcassets/Settings/Contents.json | 6 + .../appearance.imageset/Contents.json | 23 + .../appearance.imageset/appearance.png | Bin 0 -> 716 bytes .../appearance.imageset/appearance@2x.png | Bin 0 -> 1433 bytes .../appearance.imageset/appearance@3x.png | Bin 0 -> 2014 bytes .../Settings/host.imageset/Contents.json | 23 + .../Settings/host.imageset/host.png | Bin 0 -> 694 bytes .../Settings/host.imageset/host@2x.png | Bin 0 -> 1268 bytes .../Settings/host.imageset/host@3x.png | Bin 0 -> 1793 bytes .../Settings/key.imageset/Contents.json | 23 + Media.xcassets/Settings/key.imageset/key.png | Bin 0 -> 548 bytes .../Settings/key.imageset/key@2x.png | Bin 0 -> 1125 bytes .../Settings/key.imageset/key@3x.png | Bin 0 -> 1706 bytes .../Settings/keyboard.imageset/Contents.json | 23 + .../Settings/keyboard.imageset/keyboard.png | Bin 0 -> 603 bytes .../keyboard.imageset/keyboard@2x.png | Bin 0 -> 1125 bytes .../keyboard.imageset/keyboard@3x.png | Bin 0 -> 1440 bytes .../Settings/shortcuts.imageset/Contents.json | 23 + .../Settings/shortcuts.imageset/shortcuts.png | Bin 0 -> 864 bytes .../shortcuts.imageset/shortcuts@2x.png | Bin 0 -> 1684 bytes .../shortcuts.imageset/shortcuts@3x.png | Bin 0 -> 2241 bytes README.md | 59 + Resources/locales.bundle/UTF-8/LC_CTYPE | Bin 0 -> 81360 bytes Resources/term.html | 67 + Sessions/MCPSession.h | 45 + Sessions/MCPSession.m | 208 ++++ Sessions/MoshSession.h | 45 + Sessions/MoshSession.m | 286 +++++ Sessions/PKCard.h | 66 + Sessions/PKCard.m | 367 ++++++ Sessions/SSHCopyIDSession.h | 41 + Sessions/SSHCopyIDSession.m | 81 ++ Sessions/SSHSession.h | 45 + Sessions/SSHSession.m | 950 ++++++++++++++ Sessions/Session.h | 73 ++ Sessions/Session.m | 159 +++ Sessions/linenoise.c | 1094 +++++++++++++++++ Sessions/linenoise.h | 69 ++ main.m | 39 + 92 files changed, 9061 insertions(+) create mode 100644 .clang-format create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 AUTHORS create mode 100644 BUILD create mode 100644 Blink.xcodeproj/project.pbxproj create mode 100644 Blink.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Blink/AppDelegate.h create mode 100644 Blink/AppDelegate.m create mode 100644 Blink/Base.lproj/LaunchScreen.storyboard create mode 100644 Blink/Base.lproj/Main.storyboard create mode 100644 Blink/DismissSegue.h create mode 100644 Blink/DismissSegue.m create mode 100644 Blink/Info.plist create mode 100644 Blink/PKCardCreateViewController.h create mode 100644 Blink/PKCardCreateViewController.m create mode 100644 Blink/PKCardDetailsViewController.h create mode 100644 Blink/PKCardDetailsViewController.m create mode 100644 Blink/PKCardViewController.h create mode 100644 Blink/PKCardViewController.m create mode 100755 Blink/Settings.storyboard create mode 100755 Blink/SmartKeys.h create mode 100755 Blink/SmartKeys.m create mode 100755 Blink/SmartKeys.xib create mode 100755 Blink/SmartKeysView.h create mode 100755 Blink/SmartKeysView.m create mode 100644 Blink/SpaceController.h create mode 100644 Blink/SpaceController.m create mode 100644 Blink/TermController.h create mode 100644 Blink/TermController.m create mode 100644 Blink/TermView.h create mode 100644 Blink/TermView.m create mode 100644 Blink/fterm.h create mode 100644 Blink/fterm.m create mode 100644 BlinkUITests/BlinkUITests.m create mode 100644 BlinkUITests/Info.plist create mode 100644 CHANGELOG.md create mode 100644 COPYING create mode 160000 Frameworks/MBProgressHUD create mode 160000 Frameworks/UICKeyChainStore create mode 100644 Media.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Media.xcassets/AppIcon.appiconset/Icon-40.png create mode 100644 Media.xcassets/AppIcon.appiconset/Icon-40@2x.png create mode 100644 Media.xcassets/AppIcon.appiconset/Icon-40@3x.png create mode 100644 Media.xcassets/AppIcon.appiconset/Icon-60@2x.png create mode 100644 Media.xcassets/AppIcon.appiconset/Icon-60@3x.png create mode 100644 Media.xcassets/AppIcon.appiconset/Icon-76.png create mode 100644 Media.xcassets/AppIcon.appiconset/Icon-76@2x.png create mode 100644 Media.xcassets/AppIcon.appiconset/Icon-83.5@2x.png create mode 100644 Media.xcassets/AppIcon.appiconset/Icon-Small.png create mode 100644 Media.xcassets/AppIcon.appiconset/Icon-Small@2x.png create mode 100644 Media.xcassets/AppIcon.appiconset/Icon-Small@3x.png create mode 100644 Media.xcassets/Contents.json create mode 100644 Media.xcassets/Settings/Contents.json create mode 100644 Media.xcassets/Settings/appearance.imageset/Contents.json create mode 100644 Media.xcassets/Settings/appearance.imageset/appearance.png create mode 100644 Media.xcassets/Settings/appearance.imageset/appearance@2x.png create mode 100644 Media.xcassets/Settings/appearance.imageset/appearance@3x.png create mode 100644 Media.xcassets/Settings/host.imageset/Contents.json create mode 100644 Media.xcassets/Settings/host.imageset/host.png create mode 100644 Media.xcassets/Settings/host.imageset/host@2x.png create mode 100644 Media.xcassets/Settings/host.imageset/host@3x.png create mode 100644 Media.xcassets/Settings/key.imageset/Contents.json create mode 100644 Media.xcassets/Settings/key.imageset/key.png create mode 100644 Media.xcassets/Settings/key.imageset/key@2x.png create mode 100644 Media.xcassets/Settings/key.imageset/key@3x.png create mode 100644 Media.xcassets/Settings/keyboard.imageset/Contents.json create mode 100644 Media.xcassets/Settings/keyboard.imageset/keyboard.png create mode 100644 Media.xcassets/Settings/keyboard.imageset/keyboard@2x.png create mode 100644 Media.xcassets/Settings/keyboard.imageset/keyboard@3x.png create mode 100644 Media.xcassets/Settings/shortcuts.imageset/Contents.json create mode 100644 Media.xcassets/Settings/shortcuts.imageset/shortcuts.png create mode 100644 Media.xcassets/Settings/shortcuts.imageset/shortcuts@2x.png create mode 100644 Media.xcassets/Settings/shortcuts.imageset/shortcuts@3x.png create mode 100644 README.md create mode 100644 Resources/locales.bundle/UTF-8/LC_CTYPE create mode 100644 Resources/term.html create mode 100644 Sessions/MCPSession.h create mode 100644 Sessions/MCPSession.m create mode 100644 Sessions/MoshSession.h create mode 100644 Sessions/MoshSession.m create mode 100644 Sessions/PKCard.h create mode 100644 Sessions/PKCard.m create mode 100644 Sessions/SSHCopyIDSession.h create mode 100644 Sessions/SSHCopyIDSession.m create mode 100644 Sessions/SSHSession.h create mode 100644 Sessions/SSHSession.m create mode 100644 Sessions/Session.h create mode 100644 Sessions/Session.m create mode 100644 Sessions/linenoise.c create mode 100644 Sessions/linenoise.h create mode 100644 main.m diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..772e59ed1 --- /dev/null +++ b/.clang-format @@ -0,0 +1,50 @@ +--- +Language: Cpp +AccessModifierOffset: -2 +AlignEscapedNewlinesLeft: false +AlignTrailingComments: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: false +BinPackParameters: true +BreakBeforeBinaryOperators: false +BreakBeforeBraces: Linux +BreakBeforeTernaryOperators: true +BreakConstructorInitializersBeforeComma: false +ColumnLimit: 0 +CommentPragmas: '^ IWYU pragma:' +ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 2 +ContinuationIndentWidth: 2 +Cpp11BracedListStyle: true +DerivePointerBinding: false +ExperimentalAutoDetectBinPacking: false +IndentCaseLabels: true +IndentFunctionDeclarationAfterType: true +IndentWidth: 2 +MaxEmptyLinesToKeep: 2 +NamespaceIndentation: None +ObjCSpaceAfterProperty: true +ObjCSpaceBeforeProtocolList: true +ObjCBlockIndentWidth: 2 +PenaltyBreakBeforeFirstCallParameter: 19 +PenaltyBreakComment: 300 +PenaltyBreakFirstLessLess: 120 +PenaltyBreakString: 1000 +PenaltyExcessCharacter: 1000000 +PenaltyReturnTypeOnItsOwnLine: 60 +PointerBindsToType: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInContainerLiterals: true +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +Standard: Cpp11 +TabWidth: 2 +UseTab: Never \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..868a9c7ee --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ +*~ +#*# +.DS_Store + +## Build generated +build/ +DerivedData/ + +## Various settings +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata/ + +## libs +Frameworks/include/* +Frameworks/lib/* + +## Other +*.moved-aside +*.xcuserstate + +## Obj-C/Swift specific +*.hmap +*.ipa +*.dSYM.zip +*.dSYM \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..346aa7651 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "Frameworks/UICKeyChainStore"] + path = Frameworks/UICKeyChainStore + url = https://github.com/kishikawakatsumi/UICKeyChainStore.git +[submodule "Frameworks/MBProgressHUD"] + path = Frameworks/MBProgressHUD + url = https://github.com/jdg/MBProgressHUD.git diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 000000000..72eadc35d --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +Carlos Cabanero diff --git a/BUILD b/BUILD new file mode 100644 index 000000000..f4fc6fb54 --- /dev/null +++ b/BUILD @@ -0,0 +1,81 @@ +# Building +Blink is currently in Alpha stage. If you would like to test it, +please tweet us @BlinkShell. You do not have to compile Blink unless +you want to make modifications to the code, which is accepted under the +[GPL License](http://github.com/blinksh/blink/COPYING). + +## Cloning +Clone Blink into your local repository and make sure to obtain any submodules: +git submodule init +git submodule update + +## Dependencies +Blink makes use of multiple dependencies that you have to compile +separately before building Blink itself. There are simple scripts available +to perform this operation. +- [Libssh2](https://github.com/x2on/libssh2-for-iOS) +- [OpenSSL](https://github.com/x2on/OpenSSL-for-iPhone/tree/ee4665d089a91d7382fcb22b0b09c85a02935739) +- [Protobuf](https://gist.github.com/BennettSmith/9487468ae3375d0db0cc) +- [Mosh](https://github.com/blinksh/build-mosh) + +Please note that Blink currently only supports armv64 and x86_64 (simulator) +platforms, so compilation for other architectures is not necessary. +### Installation +#### Libraries +All Mosh dependencies must be installed under the Framework folder +depending on the type of output. We are working on making all the +dependencies a .framework bundle, but it is a complicated project. +Framework bundles can be left at the Framework folder root, while +.a and .h files must go to the corresponding lib and include folder. + +To install Libssh2 and OpenSSL in your Blink repository, please copy +the .framework files to the Framework folders. + +For Protobuf, please copy the generated .h and .a files to the +Framework/include and Framework/lib respectively. + +Mosh will output multiple .a library files, and unfortunately we +didn't find a simple way to just aggregate all of them yet. Please +copy all the .a library files from the output folder (mosh/output) to lib +folder and paste the src/frontend/MoshiOSController.h to the header folder. + +Blink also makes use of two other projects, but those can be compiled +within the same project: +- UICKeyChainStore +- MBProgressHUD + +Blink uses Linenoise as part of its code for the simple terminal interface. +It is provided within the project due to the big changes made to it. We will +change this piece at some point. + +#### Resources +Blink's Terminal is running from JavaScript code linked at runtime. +Most of the available open source terminals can be made to work with Blink, +just by providing a "write" and "signal" functions. An example of this +is provided in the Resources/term.html file. + +You can aggregate any terminal you want to the bundle. We are currently +using [Chromium's HTerm](https://chromium.googlesource.com/apps/libapps/+/master/hterm), +but we have been also successful plugin other terminals like [Terminal.js](http://terminal.js.org). + +Generate a single term.js file and drop it under the Resources folder. + +## Compiling +Please note that to compile and install Blink in your personal +devices, you need to comply with Apple Developer Terms and Conditions, +including obtaining a Developer License for that purpose. You will also +need all the XCode command line developer tools and SDKs provided under +a separate license by Apple Inc. + +Blink uses a standard .xcodeproj file. Any missing files will be marked in +red, what can be used to test your installation. + +To configure the project: +1. Under Targets > Blink > General > Identities set a unique Bundle Identifier. +2. Under Targets > Blink > General > Identities set your Team. +3. If you do not want to make use of HockeyApp, please set the preprocessor variable +HOCKEYSDK = 0 under Build Settings. +4. You might be requested to accept your profile or setup your developer account +with XCode, follow the proper Apple Developer documentation in that case. + +As a standard XCode project, just run it with Cmd-R. diff --git a/Blink.xcodeproj/project.pbxproj b/Blink.xcodeproj/project.pbxproj new file mode 100644 index 000000000..5894e1ad2 --- /dev/null +++ b/Blink.xcodeproj/project.pbxproj @@ -0,0 +1,845 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 0716B5721CFFAB9300268B5B /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0716B52A1CFFAB9300268B5B /* AppDelegate.m */; }; + 0716B5741CFFAB9300268B5B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0716B52C1CFFAB9300268B5B /* LaunchScreen.storyboard */; }; + 0716B5751CFFAB9300268B5B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0716B52E1CFFAB9300268B5B /* Main.storyboard */; }; + 0716B5791CFFAB9300268B5B /* DismissSegue.m in Sources */ = {isa = PBXBuildFile; fileRef = 0716B5351CFFAB9300268B5B /* DismissSegue.m */; }; + 0716B58A1CFFAB9300268B5B /* PKCardCreateViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0716B54C1CFFAB9300268B5B /* PKCardCreateViewController.m */; }; + 0716B58B1CFFAB9300268B5B /* PKCardDetailsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0716B54E1CFFAB9300268B5B /* PKCardDetailsViewController.m */; }; + 0716B58C1CFFAB9300268B5B /* PKCardViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0716B5501CFFAB9300268B5B /* PKCardViewController.m */; }; + 0716B58E1CFFAB9300268B5B /* Settings.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0716B5531CFFAB9300268B5B /* Settings.storyboard */; }; + 0716B58F1CFFAB9300268B5B /* SmartKeys.m in Sources */ = {isa = PBXBuildFile; fileRef = 0716B5551CFFAB9300268B5B /* SmartKeys.m */; }; + 0716B5901CFFAB9300268B5B /* SmartKeysView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0716B5571CFFAB9300268B5B /* SmartKeysView.m */; }; + 0716B5911CFFAB9300268B5B /* SpaceController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0716B5591CFFAB9300268B5B /* SpaceController.m */; }; + 0716B5961CFFAB9300268B5B /* TermController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0716B5621CFFAB9300268B5B /* TermController.m */; }; + 0716B5A71CFFABB000268B5B /* BlinkUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0716B5A51CFFABB000268B5B /* BlinkUITests.m */; }; + 0716B5A81CFFABB000268B5B /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 0716B5A61CFFABB000268B5B /* Info.plist */; }; + 0732F04C1D062B9A00AB5438 /* hterm_all.js in Resources */ = {isa = PBXBuildFile; fileRef = 0732F0491D062B9A00AB5438 /* hterm_all.js */; }; + 0732F04D1D062B9A00AB5438 /* locales.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 0732F04A1D062B9A00AB5438 /* locales.bundle */; }; + 0732F04E1D062B9A00AB5438 /* term.html in Resources */ = {isa = PBXBuildFile; fileRef = 0732F04B1D062B9A00AB5438 /* term.html */; }; + 0732F0B61D062BB300AB5438 /* libmoshcrypto.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F0571D062BB300AB5438 /* libmoshcrypto.a */; }; + 0732F0B71D062BB300AB5438 /* libmoshios.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F0581D062BB300AB5438 /* libmoshios.a */; }; + 0732F0B81D062BB300AB5438 /* libmoshnetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F0591D062BB300AB5438 /* libmoshnetwork.a */; }; + 0732F0B91D062BB300AB5438 /* libmoshprotos.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F05A1D062BB300AB5438 /* libmoshprotos.a */; }; + 0732F0BA1D062BB300AB5438 /* libmoshstatesync.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F05B1D062BB300AB5438 /* libmoshstatesync.a */; }; + 0732F0BB1D062BB400AB5438 /* libmoshterminal.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F05C1D062BB300AB5438 /* libmoshterminal.a */; }; + 0732F0BC1D062BB400AB5438 /* libmoshutil.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F05D1D062BB300AB5438 /* libmoshutil.a */; }; + 0732F0BD1D062BB400AB5438 /* libprotobuf.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F05E1D062BB300AB5438 /* libprotobuf.a */; }; + 0732F0BE1D062BB400AB5438 /* libssh2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F05F1D062BB300AB5438 /* libssh2.framework */; }; + 0732F0D11D062BB400AB5438 /* openssl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F0841D062BB300AB5438 /* openssl.framework */; }; + 0732F11D1D062D9D00AB5438 /* HockeySDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F11C1D062D9D00AB5438 /* HockeySDK.framework */; }; + 0732F11E1D062DDB00AB5438 /* UICKeyChainStore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F1171D062CA000AB5438 /* UICKeyChainStore.framework */; }; + 0732F11F1D062DDB00AB5438 /* UICKeyChainStore.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F1171D062CA000AB5438 /* UICKeyChainStore.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 0732F1221D062DDB00AB5438 /* MBProgressHUD.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F10D1D062BF700AB5438 /* MBProgressHUD.framework */; }; + 0732F1231D062DDB00AB5438 /* MBProgressHUD.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F10D1D062BF700AB5438 /* MBProgressHUD.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 0732F1271D06323A00AB5438 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F1261D06323A00AB5438 /* libz.tbd */; }; + 0732F1291D06324200AB5438 /* libcurses.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F1281D06324200AB5438 /* libcurses.tbd */; }; + 0732F12B1D06324B00AB5438 /* libstdc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 0732F12A1D06324B00AB5438 /* libstdc++.tbd */; }; + 074F30791D062A2800A73445 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 074F30781D062A2800A73445 /* main.m */; }; + 074F307B1D062A3F00A73445 /* SmartKeys.xib in Resources */ = {isa = PBXBuildFile; fileRef = 074F307A1D062A3F00A73445 /* SmartKeys.xib */; }; + 079635871D0E6602000473B1 /* TermView.m in Sources */ = {isa = PBXBuildFile; fileRef = 079635841D0E6602000473B1 /* TermView.m */; }; + 079635881D0E6602000473B1 /* fterm.m in Sources */ = {isa = PBXBuildFile; fileRef = 079635851D0E6602000473B1 /* fterm.m */; }; + 079635DB1D0F8219000473B1 /* sauce.css in Resources */ = {isa = PBXBuildFile; fileRef = 079635D91D0F8219000473B1 /* sauce.css */; }; + 079635DC1D0F8219000473B1 /* webfont.js in Resources */ = {isa = PBXBuildFile; fileRef = 079635DA1D0F8219000473B1 /* webfont.js */; }; + 07E4C5211C935E28000C571A /* Media.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 07E4C5201C935E28000C571A /* Media.xcassets */; }; + 07F670711D05EEE200C0A53C /* linenoise.c in Sources */ = {isa = PBXBuildFile; fileRef = 07F670631D05EEE200C0A53C /* linenoise.c */; }; + 07F670721D05EEE200C0A53C /* MCPSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 07F670661D05EEE200C0A53C /* MCPSession.m */; }; + 07F670731D05EEE200C0A53C /* MoshSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 07F670681D05EEE200C0A53C /* MoshSession.m */; }; + 07F670741D05EEE200C0A53C /* PKCard.m in Sources */ = {isa = PBXBuildFile; fileRef = 07F6706A1D05EEE200C0A53C /* PKCard.m */; }; + 07F670751D05EEE200C0A53C /* Session.m in Sources */ = {isa = PBXBuildFile; fileRef = 07F6706C1D05EEE200C0A53C /* Session.m */; }; + 07F670761D05EEE200C0A53C /* SSHCopyIDSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 07F6706E1D05EEE200C0A53C /* SSHCopyIDSession.m */; }; + 07F670771D05EEE200C0A53C /* SSHSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 07F670701D05EEE200C0A53C /* SSHSession.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 0732F10A1D062BF700AB5438 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0732F1051D062BF700AB5438 /* MBProgressHUD.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = D286A7491518C70F00E13FB8; + remoteInfo = "MBProgressHUD Static Library"; + }; + 0732F10C1D062BF700AB5438 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0732F1051D062BF700AB5438 /* MBProgressHUD.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 1D104D7A1ACA36CC00973364; + remoteInfo = "MBProgressHUD Framework"; + }; + 0732F1161D062CA000AB5438 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0732F1101D062C9F00AB5438 /* UICKeyChainStore.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 14796A501C1CD9A500169D09; + remoteInfo = UICKeyChainStore; + }; + 0732F1181D062CA000AB5438 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0732F1101D062C9F00AB5438 /* UICKeyChainStore.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 14796A691C1CD9C900169D09; + remoteInfo = libUICKeyChainStore; + }; + 0732F11A1D062CA000AB5438 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0732F1101D062C9F00AB5438 /* UICKeyChainStore.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 14796A5F1C1CD9B500169D09; + remoteInfo = UICKeyChainStoreTests; + }; + 0732F1201D062DDB00AB5438 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0732F1101D062C9F00AB5438 /* UICKeyChainStore.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 14796A461C1CD9A500169D09; + remoteInfo = UICKeyChainStore; + }; + 0732F1241D062DDC00AB5438 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0732F1051D062BF700AB5438 /* MBProgressHUD.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 1D104D791ACA36CC00973364; + remoteInfo = "MBProgressHUD Framework"; + }; + EA0BA1A51C0CC57B00719C1A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = EA0BA1831C0CC57B00719C1A /* Project object */; + proxyType = 1; + remoteGlobalIDString = EA0BA18A1C0CC57B00719C1A; + remoteInfo = Blink; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 07A06D8C1D0618FC00ABEAFA /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 0732F1231D062DDB00AB5438 /* MBProgressHUD.framework in Embed Frameworks */, + 0732F11F1D062DDB00AB5438 /* UICKeyChainStore.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 0716B5291CFFAB9300268B5B /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 0716B52A1CFFAB9300268B5B /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 0716B52D1CFFAB9300268B5B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 0716B52F1CFFAB9300268B5B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 0716B5341CFFAB9300268B5B /* DismissSegue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DismissSegue.h; sourceTree = ""; }; + 0716B5351CFFAB9300268B5B /* DismissSegue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DismissSegue.m; sourceTree = ""; }; + 0716B53C1CFFAB9300268B5B /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 0716B54B1CFFAB9300268B5B /* PKCardCreateViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PKCardCreateViewController.h; sourceTree = ""; }; + 0716B54C1CFFAB9300268B5B /* PKCardCreateViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PKCardCreateViewController.m; sourceTree = ""; }; + 0716B54D1CFFAB9300268B5B /* PKCardDetailsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PKCardDetailsViewController.h; sourceTree = ""; }; + 0716B54E1CFFAB9300268B5B /* PKCardDetailsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PKCardDetailsViewController.m; sourceTree = ""; }; + 0716B54F1CFFAB9300268B5B /* PKCardViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PKCardViewController.h; sourceTree = ""; }; + 0716B5501CFFAB9300268B5B /* PKCardViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PKCardViewController.m; sourceTree = ""; }; + 0716B5531CFFAB9300268B5B /* Settings.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Settings.storyboard; sourceTree = ""; }; + 0716B5541CFFAB9300268B5B /* SmartKeys.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SmartKeys.h; sourceTree = ""; }; + 0716B5551CFFAB9300268B5B /* SmartKeys.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SmartKeys.m; sourceTree = ""; }; + 0716B5561CFFAB9300268B5B /* SmartKeysView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SmartKeysView.h; sourceTree = ""; }; + 0716B5571CFFAB9300268B5B /* SmartKeysView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SmartKeysView.m; sourceTree = ""; }; + 0716B5581CFFAB9300268B5B /* SpaceController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpaceController.h; sourceTree = ""; }; + 0716B5591CFFAB9300268B5B /* SpaceController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SpaceController.m; sourceTree = ""; }; + 0716B5611CFFAB9300268B5B /* TermController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TermController.h; sourceTree = ""; }; + 0716B5621CFFAB9300268B5B /* TermController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TermController.m; sourceTree = ""; }; + 0716B5A51CFFABB000268B5B /* BlinkUITests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BlinkUITests.m; sourceTree = ""; }; + 0716B5A61CFFABB000268B5B /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 0732F0491D062B9A00AB5438 /* hterm_all.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = hterm_all.js; sourceTree = ""; }; + 0732F04A1D062B9A00AB5438 /* locales.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = locales.bundle; sourceTree = ""; }; + 0732F04B1D062B9A00AB5438 /* term.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = term.html; sourceTree = ""; }; + 0732F0551D062BB300AB5438 /* MoshiOSController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MoshiOSController.h; sourceTree = ""; }; + 0732F0571D062BB300AB5438 /* libmoshcrypto.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libmoshcrypto.a; sourceTree = ""; }; + 0732F0581D062BB300AB5438 /* libmoshios.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libmoshios.a; sourceTree = ""; }; + 0732F0591D062BB300AB5438 /* libmoshnetwork.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libmoshnetwork.a; sourceTree = ""; }; + 0732F05A1D062BB300AB5438 /* libmoshprotos.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libmoshprotos.a; sourceTree = ""; }; + 0732F05B1D062BB300AB5438 /* libmoshstatesync.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libmoshstatesync.a; sourceTree = ""; }; + 0732F05C1D062BB300AB5438 /* libmoshterminal.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libmoshterminal.a; sourceTree = ""; }; + 0732F05D1D062BB300AB5438 /* libmoshutil.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libmoshutil.a; sourceTree = ""; }; + 0732F05E1D062BB300AB5438 /* libprotobuf.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libprotobuf.a; sourceTree = ""; }; + 0732F05F1D062BB300AB5438 /* libssh2.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = libssh2.framework; sourceTree = ""; }; + 0732F0841D062BB300AB5438 /* openssl.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = openssl.framework; sourceTree = ""; }; + 0732F1051D062BF700AB5438 /* MBProgressHUD.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = MBProgressHUD.xcodeproj; path = MBProgressHUD/MBProgressHUD.xcodeproj; sourceTree = ""; }; + 0732F1101D062C9F00AB5438 /* UICKeyChainStore.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UICKeyChainStore.xcodeproj; path = UICKeyChainStore/Lib/UICKeyChainStore.xcodeproj; sourceTree = ""; }; + 0732F11C1D062D9D00AB5438 /* HockeySDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = HockeySDK.framework; path = HockeySDK.embeddedframework/HockeySDK.framework; sourceTree = ""; }; + 0732F1261D06323A00AB5438 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; + 0732F1281D06324200AB5438 /* libcurses.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libcurses.tbd; path = usr/lib/libcurses.tbd; sourceTree = SDKROOT; }; + 0732F12A1D06324B00AB5438 /* libstdc++.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libstdc++.tbd"; path = "usr/lib/libstdc++.tbd"; sourceTree = SDKROOT; }; + 074F30781D062A2800A73445 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 074F307A1D062A3F00A73445 /* SmartKeys.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SmartKeys.xib; sourceTree = ""; }; + 079635831D0E6602000473B1 /* TermView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TermView.h; sourceTree = ""; }; + 079635841D0E6602000473B1 /* TermView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TermView.m; sourceTree = ""; }; + 079635851D0E6602000473B1 /* fterm.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = fterm.m; sourceTree = ""; }; + 079635861D0E6602000473B1 /* fterm.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fterm.h; sourceTree = ""; }; + 079635D91D0F8219000473B1 /* sauce.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = sauce.css; sourceTree = ""; }; + 079635DA1D0F8219000473B1 /* webfont.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = webfont.js; sourceTree = ""; }; + 07E4C5201C935E28000C571A /* Media.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Media.xcassets; sourceTree = ""; }; + 07F670631D05EEE200C0A53C /* linenoise.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = linenoise.c; sourceTree = ""; }; + 07F670641D05EEE200C0A53C /* linenoise.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = linenoise.h; sourceTree = ""; }; + 07F670651D05EEE200C0A53C /* MCPSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MCPSession.h; sourceTree = ""; }; + 07F670661D05EEE200C0A53C /* MCPSession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MCPSession.m; sourceTree = ""; }; + 07F670671D05EEE200C0A53C /* MoshSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MoshSession.h; sourceTree = ""; }; + 07F670681D05EEE200C0A53C /* MoshSession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MoshSession.m; sourceTree = ""; }; + 07F670691D05EEE200C0A53C /* PKCard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PKCard.h; sourceTree = ""; }; + 07F6706A1D05EEE200C0A53C /* PKCard.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PKCard.m; sourceTree = ""; }; + 07F6706B1D05EEE200C0A53C /* Session.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Session.h; sourceTree = ""; }; + 07F6706C1D05EEE200C0A53C /* Session.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Session.m; sourceTree = ""; }; + 07F6706D1D05EEE200C0A53C /* SSHCopyIDSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSHCopyIDSession.h; sourceTree = ""; }; + 07F6706E1D05EEE200C0A53C /* SSHCopyIDSession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSHCopyIDSession.m; sourceTree = ""; }; + 07F6706F1D05EEE200C0A53C /* SSHSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSHSession.h; sourceTree = ""; }; + 07F670701D05EEE200C0A53C /* SSHSession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSHSession.m; sourceTree = ""; }; + EA0BA18B1C0CC57B00719C1A /* Blink.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Blink.app; sourceTree = BUILT_PRODUCTS_DIR; }; + EA0BA1A41C0CC57B00719C1A /* Blink.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Blink.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + EA0BA1881C0CC57B00719C1A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0732F12B1D06324B00AB5438 /* libstdc++.tbd in Frameworks */, + 0732F1291D06324200AB5438 /* libcurses.tbd in Frameworks */, + 0732F1271D06323A00AB5438 /* libz.tbd in Frameworks */, + 0732F11E1D062DDB00AB5438 /* UICKeyChainStore.framework in Frameworks */, + 0732F1221D062DDB00AB5438 /* MBProgressHUD.framework in Frameworks */, + 0732F0BC1D062BB400AB5438 /* libmoshutil.a in Frameworks */, + 0732F0D11D062BB400AB5438 /* openssl.framework in Frameworks */, + 0732F0BD1D062BB400AB5438 /* libprotobuf.a in Frameworks */, + 0732F0B71D062BB300AB5438 /* libmoshios.a in Frameworks */, + 0732F0B91D062BB300AB5438 /* libmoshprotos.a in Frameworks */, + 0732F0BE1D062BB400AB5438 /* libssh2.framework in Frameworks */, + 0732F0B61D062BB300AB5438 /* libmoshcrypto.a in Frameworks */, + 0732F0BB1D062BB400AB5438 /* libmoshterminal.a in Frameworks */, + 0732F0B81D062BB300AB5438 /* libmoshnetwork.a in Frameworks */, + 0732F11D1D062D9D00AB5438 /* HockeySDK.framework in Frameworks */, + 0732F0BA1D062BB300AB5438 /* libmoshstatesync.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EA0BA1A11C0CC57B00719C1A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0716B5231CFFAB9300268B5B /* Blink */ = { + isa = PBXGroup; + children = ( + 0716B53C1CFFAB9300268B5B /* Info.plist */, + 0716B54B1CFFAB9300268B5B /* PKCardCreateViewController.h */, + 0716B54C1CFFAB9300268B5B /* PKCardCreateViewController.m */, + 0716B54D1CFFAB9300268B5B /* PKCardDetailsViewController.h */, + 0716B54E1CFFAB9300268B5B /* PKCardDetailsViewController.m */, + 0716B54F1CFFAB9300268B5B /* PKCardViewController.h */, + 0716B5501CFFAB9300268B5B /* PKCardViewController.m */, + 0716B5291CFFAB9300268B5B /* AppDelegate.h */, + 0716B52A1CFFAB9300268B5B /* AppDelegate.m */, + 0716B52C1CFFAB9300268B5B /* LaunchScreen.storyboard */, + 0716B52E1CFFAB9300268B5B /* Main.storyboard */, + 0716B5341CFFAB9300268B5B /* DismissSegue.h */, + 0716B5351CFFAB9300268B5B /* DismissSegue.m */, + 0716B5541CFFAB9300268B5B /* SmartKeys.h */, + 0716B5551CFFAB9300268B5B /* SmartKeys.m */, + 074F307A1D062A3F00A73445 /* SmartKeys.xib */, + 0716B5561CFFAB9300268B5B /* SmartKeysView.h */, + 0716B5571CFFAB9300268B5B /* SmartKeysView.m */, + 0716B5581CFFAB9300268B5B /* SpaceController.h */, + 0716B5591CFFAB9300268B5B /* SpaceController.m */, + 0716B5531CFFAB9300268B5B /* Settings.storyboard */, + 0716B5611CFFAB9300268B5B /* TermController.h */, + 0716B5621CFFAB9300268B5B /* TermController.m */, + 079635831D0E6602000473B1 /* TermView.h */, + 079635841D0E6602000473B1 /* TermView.m */, + 079635851D0E6602000473B1 /* fterm.m */, + 079635861D0E6602000473B1 /* fterm.h */, + ); + path = Blink; + sourceTree = ""; + }; + 0716B5A41CFFABB000268B5B /* BlinkUITests */ = { + isa = PBXGroup; + children = ( + 0716B5A51CFFABB000268B5B /* BlinkUITests.m */, + 0716B5A61CFFABB000268B5B /* Info.plist */, + ); + path = BlinkUITests; + sourceTree = ""; + }; + 0732F0481D062B9A00AB5438 /* Resources */ = { + isa = PBXGroup; + children = ( + 079635D91D0F8219000473B1 /* sauce.css */, + 079635DA1D0F8219000473B1 /* webfont.js */, + 0732F0491D062B9A00AB5438 /* hterm_all.js */, + 0732F04A1D062B9A00AB5438 /* locales.bundle */, + 0732F04B1D062B9A00AB5438 /* term.html */, + ); + path = Resources; + sourceTree = ""; + }; + 0732F04F1D062BB300AB5438 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 0732F12A1D06324B00AB5438 /* libstdc++.tbd */, + 0732F1281D06324200AB5438 /* libcurses.tbd */, + 0732F1261D06323A00AB5438 /* libz.tbd */, + 0732F11C1D062D9D00AB5438 /* HockeySDK.framework */, + 0732F1101D062C9F00AB5438 /* UICKeyChainStore.xcodeproj */, + 0732F1051D062BF700AB5438 /* MBProgressHUD.xcodeproj */, + 0732F0541D062BB300AB5438 /* include */, + 0732F0561D062BB300AB5438 /* lib */, + 0732F05F1D062BB300AB5438 /* libssh2.framework */, + 0732F0841D062BB300AB5438 /* openssl.framework */, + ); + path = Frameworks; + sourceTree = ""; + }; + 0732F0541D062BB300AB5438 /* include */ = { + isa = PBXGroup; + children = ( + 0732F0551D062BB300AB5438 /* MoshiOSController.h */, + ); + path = include; + sourceTree = ""; + }; + 0732F0561D062BB300AB5438 /* lib */ = { + isa = PBXGroup; + children = ( + 0732F0571D062BB300AB5438 /* libmoshcrypto.a */, + 0732F0581D062BB300AB5438 /* libmoshios.a */, + 0732F0591D062BB300AB5438 /* libmoshnetwork.a */, + 0732F05A1D062BB300AB5438 /* libmoshprotos.a */, + 0732F05B1D062BB300AB5438 /* libmoshstatesync.a */, + 0732F05C1D062BB300AB5438 /* libmoshterminal.a */, + 0732F05D1D062BB300AB5438 /* libmoshutil.a */, + 0732F05E1D062BB300AB5438 /* libprotobuf.a */, + ); + path = lib; + sourceTree = ""; + }; + 0732F1061D062BF700AB5438 /* Products */ = { + isa = PBXGroup; + children = ( + 0732F10B1D062BF700AB5438 /* libMBProgressHUD.a */, + 0732F10D1D062BF700AB5438 /* MBProgressHUD.framework */, + ); + name = Products; + sourceTree = ""; + }; + 0732F1111D062C9F00AB5438 /* Products */ = { + isa = PBXGroup; + children = ( + 0732F1171D062CA000AB5438 /* UICKeyChainStore.framework */, + 0732F1191D062CA000AB5438 /* libUICKeyChainStore.a */, + 0732F11B1D062CA000AB5438 /* UICKeyChainStoreTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 07F670621D05EEE200C0A53C /* Sessions */ = { + isa = PBXGroup; + children = ( + 07F670631D05EEE200C0A53C /* linenoise.c */, + 07F670641D05EEE200C0A53C /* linenoise.h */, + 07F670651D05EEE200C0A53C /* MCPSession.h */, + 07F670661D05EEE200C0A53C /* MCPSession.m */, + 07F670671D05EEE200C0A53C /* MoshSession.h */, + 07F670681D05EEE200C0A53C /* MoshSession.m */, + 07F670691D05EEE200C0A53C /* PKCard.h */, + 07F6706A1D05EEE200C0A53C /* PKCard.m */, + 07F6706B1D05EEE200C0A53C /* Session.h */, + 07F6706C1D05EEE200C0A53C /* Session.m */, + 07F6706D1D05EEE200C0A53C /* SSHCopyIDSession.h */, + 07F6706E1D05EEE200C0A53C /* SSHCopyIDSession.m */, + 07F6706F1D05EEE200C0A53C /* SSHSession.h */, + 07F670701D05EEE200C0A53C /* SSHSession.m */, + ); + path = Sessions; + sourceTree = SOURCE_ROOT; + }; + EA0BA1821C0CC57B00719C1A = { + isa = PBXGroup; + children = ( + 0732F04F1D062BB300AB5438 /* Frameworks */, + 0732F0481D062B9A00AB5438 /* Resources */, + 074F30781D062A2800A73445 /* main.m */, + 07E4C5201C935E28000C571A /* Media.xcassets */, + 07F670621D05EEE200C0A53C /* Sessions */, + 0716B5231CFFAB9300268B5B /* Blink */, + EA0BA18C1C0CC57B00719C1A /* Products */, + 0716B5A41CFFABB000268B5B /* BlinkUITests */, + ); + indentWidth = 2; + sourceTree = ""; + tabWidth = 2; + }; + EA0BA18C1C0CC57B00719C1A /* Products */ = { + isa = PBXGroup; + children = ( + EA0BA18B1C0CC57B00719C1A /* Blink.app */, + EA0BA1A41C0CC57B00719C1A /* Blink.xctest */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + EA0BA18A1C0CC57B00719C1A /* Blink */ = { + isa = PBXNativeTarget; + buildConfigurationList = EA0BA1AD1C0CC57C00719C1A /* Build configuration list for PBXNativeTarget "Blink" */; + buildPhases = ( + EA0BA1871C0CC57B00719C1A /* Sources */, + EA0BA1881C0CC57B00719C1A /* Frameworks */, + EA0BA1891C0CC57B00719C1A /* Resources */, + 07A06D8C1D0618FC00ABEAFA /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 0732F1211D062DDB00AB5438 /* PBXTargetDependency */, + 0732F1251D062DDC00AB5438 /* PBXTargetDependency */, + ); + name = Blink; + productName = Blink; + productReference = EA0BA18B1C0CC57B00719C1A /* Blink.app */; + productType = "com.apple.product-type.application"; + }; + EA0BA1A31C0CC57B00719C1A /* BlinkUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = EA0BA1B01C0CC57C00719C1A /* Build configuration list for PBXNativeTarget "BlinkUITests" */; + buildPhases = ( + EA0BA1A01C0CC57B00719C1A /* Sources */, + EA0BA1A11C0CC57B00719C1A /* Frameworks */, + EA0BA1A21C0CC57B00719C1A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + EA0BA1A61C0CC57B00719C1A /* PBXTargetDependency */, + ); + name = BlinkUITests; + productName = BlinkUITests; + productReference = EA0BA1A41C0CC57B00719C1A /* Blink.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + EA0BA1831C0CC57B00719C1A /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = ""; + LastUpgradeCheck = 0710; + ORGANIZATIONNAME = "Carlos Cabañero Projects SL"; + TargetAttributes = { + EA0BA18A1C0CC57B00719C1A = { + CreatedOnToolsVersion = 7.1.1; + DevelopmentTeam = HV2S48975V; + }; + EA0BA1A31C0CC57B00719C1A = { + CreatedOnToolsVersion = 7.1.1; + TestTargetID = EA0BA18A1C0CC57B00719C1A; + }; + }; + }; + buildConfigurationList = EA0BA1861C0CC57B00719C1A /* Build configuration list for PBXProject "Blink" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + de, + es, + fr, + hr, + hu, + it, + ja, + nl, + "pt-PT", + pt, + ru, + "zh-Hans", + ); + mainGroup = EA0BA1821C0CC57B00719C1A; + productRefGroup = EA0BA18C1C0CC57B00719C1A /* Products */; + projectDirPath = ""; + projectReferences = ( + { + ProductGroup = 0732F1061D062BF700AB5438 /* Products */; + ProjectRef = 0732F1051D062BF700AB5438 /* MBProgressHUD.xcodeproj */; + }, + { + ProductGroup = 0732F1111D062C9F00AB5438 /* Products */; + ProjectRef = 0732F1101D062C9F00AB5438 /* UICKeyChainStore.xcodeproj */; + }, + ); + projectRoot = ""; + targets = ( + EA0BA18A1C0CC57B00719C1A /* Blink */, + EA0BA1A31C0CC57B00719C1A /* BlinkUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXReferenceProxy section */ + 0732F10B1D062BF700AB5438 /* libMBProgressHUD.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libMBProgressHUD.a; + remoteRef = 0732F10A1D062BF700AB5438 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 0732F10D1D062BF700AB5438 /* MBProgressHUD.framework */ = { + isa = PBXReferenceProxy; + fileType = wrapper.framework; + path = MBProgressHUD.framework; + remoteRef = 0732F10C1D062BF700AB5438 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 0732F1171D062CA000AB5438 /* UICKeyChainStore.framework */ = { + isa = PBXReferenceProxy; + fileType = wrapper.framework; + path = UICKeyChainStore.framework; + remoteRef = 0732F1161D062CA000AB5438 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 0732F1191D062CA000AB5438 /* libUICKeyChainStore.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libUICKeyChainStore.a; + remoteRef = 0732F1181D062CA000AB5438 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 0732F11B1D062CA000AB5438 /* UICKeyChainStoreTests.xctest */ = { + isa = PBXReferenceProxy; + fileType = wrapper.cfbundle; + path = UICKeyChainStoreTests.xctest; + remoteRef = 0732F11A1D062CA000AB5438 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + +/* Begin PBXResourcesBuildPhase section */ + EA0BA1891C0CC57B00719C1A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 07E4C5211C935E28000C571A /* Media.xcassets in Resources */, + 0732F04D1D062B9A00AB5438 /* locales.bundle in Resources */, + 074F307B1D062A3F00A73445 /* SmartKeys.xib in Resources */, + 0716B5741CFFAB9300268B5B /* LaunchScreen.storyboard in Resources */, + 0716B58E1CFFAB9300268B5B /* Settings.storyboard in Resources */, + 0716B5751CFFAB9300268B5B /* Main.storyboard in Resources */, + 0732F04C1D062B9A00AB5438 /* hterm_all.js in Resources */, + 0732F04E1D062B9A00AB5438 /* term.html in Resources */, + 079635DC1D0F8219000473B1 /* webfont.js in Resources */, + 079635DB1D0F8219000473B1 /* sauce.css in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EA0BA1A21C0CC57B00719C1A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0716B5A81CFFABB000268B5B /* Info.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + EA0BA1871C0CC57B00719C1A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0716B5721CFFAB9300268B5B /* AppDelegate.m in Sources */, + 07F670731D05EEE200C0A53C /* MoshSession.m in Sources */, + 07F670721D05EEE200C0A53C /* MCPSession.m in Sources */, + 0716B5791CFFAB9300268B5B /* DismissSegue.m in Sources */, + 07F670771D05EEE200C0A53C /* SSHSession.m in Sources */, + 0716B58B1CFFAB9300268B5B /* PKCardDetailsViewController.m in Sources */, + 07F670761D05EEE200C0A53C /* SSHCopyIDSession.m in Sources */, + 074F30791D062A2800A73445 /* main.m in Sources */, + 079635881D0E6602000473B1 /* fterm.m in Sources */, + 0716B58F1CFFAB9300268B5B /* SmartKeys.m in Sources */, + 0716B58C1CFFAB9300268B5B /* PKCardViewController.m in Sources */, + 07F670751D05EEE200C0A53C /* Session.m in Sources */, + 07F670711D05EEE200C0A53C /* linenoise.c in Sources */, + 07F670741D05EEE200C0A53C /* PKCard.m in Sources */, + 0716B5961CFFAB9300268B5B /* TermController.m in Sources */, + 0716B5901CFFAB9300268B5B /* SmartKeysView.m in Sources */, + 0716B5911CFFAB9300268B5B /* SpaceController.m in Sources */, + 079635871D0E6602000473B1 /* TermView.m in Sources */, + 0716B58A1CFFAB9300268B5B /* PKCardCreateViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EA0BA1A01C0CC57B00719C1A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0716B5A71CFFABB000268B5B /* BlinkUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 0732F1211D062DDB00AB5438 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UICKeyChainStore; + targetProxy = 0732F1201D062DDB00AB5438 /* PBXContainerItemProxy */; + }; + 0732F1251D062DDC00AB5438 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "MBProgressHUD Framework"; + targetProxy = 0732F1241D062DDC00AB5438 /* PBXContainerItemProxy */; + }; + EA0BA1A61C0CC57B00719C1A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = EA0BA18A1C0CC57B00719C1A /* Blink */; + targetProxy = EA0BA1A51C0CC57B00719C1A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 0716B52C1CFFAB9300268B5B /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 0716B52D1CFFAB9300268B5B /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; + 0716B52E1CFFAB9300268B5B /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 0716B52F1CFFAB9300268B5B /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + EA0BA1AB1C0CC57C00719C1A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.1; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + VALID_ARCHS = arm64; + }; + name = Debug; + }; + EA0BA1AC1C0CC57C00719C1A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREPROCESSOR_DEFINITIONS = ""; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.1; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + VALID_ARCHS = arm64; + }; + name = Release; + }; + EA0BA1AE1C0CC57C00719C1A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Frameworks/**", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + "HOCKEYSDK=1", + ); + HEADER_SEARCH_PATHS = $SOURCE_ROOT/Frameworks/include; + INFOPLIST_FILE = Blink/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 9.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Frameworks/lib", + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_BUNDLE_IDENTIFIER = Com.CarlosCabanero.Blink; + PRODUCT_NAME = Blink; + PROVISIONING_PROFILE = ""; + TARGETED_DEVICE_FAMILY = "1,2"; + VALID_ARCHS = arm64; + }; + name = Debug; + }; + EA0BA1AF1C0CC57C00719C1A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Frameworks/**", + ); + GCC_PREPROCESSOR_DEFINITIONS = "HOCKEYSDK=0"; + "GCC_PREPROCESSOR_DEFINITIONS[arch=*]" = ""; + HEADER_SEARCH_PATHS = $SOURCE_ROOT/Frameworks/include; + INFOPLIST_FILE = Blink/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 9.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Frameworks/lib", + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_BUNDLE_IDENTIFIER = Com.CarlosCabanero.Blink; + PRODUCT_NAME = Blink; + PROVISIONING_PROFILE = ""; + TARGETED_DEVICE_FAMILY = "1,2"; + VALID_ARCHS = arm64; + }; + name = Release; + }; + EA0BA1B11C0CC57C00719C1A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = BlinkUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = Carlos.BlinkUITests; + PRODUCT_NAME = Blink; + TEST_TARGET_NAME = Blink; + USES_XCTRUNNER = YES; + }; + name = Debug; + }; + EA0BA1B21C0CC57C00719C1A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = BlinkUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = Carlos.BlinkUITests; + PRODUCT_NAME = Blink; + TEST_TARGET_NAME = Blink; + USES_XCTRUNNER = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + EA0BA1861C0CC57B00719C1A /* Build configuration list for PBXProject "Blink" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EA0BA1AB1C0CC57C00719C1A /* Debug */, + EA0BA1AC1C0CC57C00719C1A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + EA0BA1AD1C0CC57C00719C1A /* Build configuration list for PBXNativeTarget "Blink" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EA0BA1AE1C0CC57C00719C1A /* Debug */, + EA0BA1AF1C0CC57C00719C1A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + EA0BA1B01C0CC57C00719C1A /* Build configuration list for PBXNativeTarget "BlinkUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EA0BA1B11C0CC57C00719C1A /* Debug */, + EA0BA1B21C0CC57C00719C1A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = EA0BA1831C0CC57B00719C1A /* Project object */; +} diff --git a/Blink.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Blink.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..a98c145cf --- /dev/null +++ b/Blink.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Blink/AppDelegate.h b/Blink/AppDelegate.h new file mode 100644 index 000000000..23bfd817e --- /dev/null +++ b/Blink/AppDelegate.h @@ -0,0 +1,38 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/Blink/AppDelegate.m b/Blink/AppDelegate.m new file mode 100644 index 000000000..67ee1c266 --- /dev/null +++ b/Blink/AppDelegate.m @@ -0,0 +1,89 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import "AppDelegate.h" + +#if HOCKEYSDK +@import HockeySDK; +#endif + +@interface AppDelegate () + +@end + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + + // Override point for customization after application launch. +#if HOCKEYSDK + NSString *hockeyID = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"HockeyID"]; + [[BITHockeyManager sharedHockeyManager] configureWithIdentifier:hockeyID]; + // Do some additional configuration if needed here + [[BITHockeyManager sharedHockeyManager].crashManager setCrashManagerStatus:BITCrashManagerStatusAutoSend]; + [[BITHockeyManager sharedHockeyManager].crashManager setEnableAppNotTerminatingCleanlyDetection:YES]; + //[[BITHockeyManager sharedHockeyManager] setDebugLogEnabled: YES]; + [[BITHockeyManager sharedHockeyManager] startManager]; + [[BITHockeyManager sharedHockeyManager].authenticator authenticateInstallation]; // This line is obsolete in the crash only build +#endif + + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/Blink/Base.lproj/LaunchScreen.storyboard b/Blink/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 000000000..0d384521c --- /dev/null +++ b/Blink/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Blink/Base.lproj/Main.storyboard b/Blink/Base.lproj/Main.storyboard new file mode 100644 index 000000000..d342f52f8 --- /dev/null +++ b/Blink/Base.lproj/Main.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Blink/DismissSegue.h b/Blink/DismissSegue.h new file mode 100644 index 000000000..486f08f28 --- /dev/null +++ b/Blink/DismissSegue.h @@ -0,0 +1,36 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +@interface DismissSegue : UIStoryboardSegue + +@end diff --git a/Blink/DismissSegue.m b/Blink/DismissSegue.m new file mode 100644 index 000000000..6b8b4ceab --- /dev/null +++ b/Blink/DismissSegue.m @@ -0,0 +1,42 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import "DismissSegue.h" + +@implementation DismissSegue + +- (void)perform +{ + UIViewController *sourceViewController = self.sourceViewController; + [sourceViewController.presentingViewController dismissViewControllerAnimated:YES completion:nil]; +} + +@end diff --git a/Blink/Info.plist b/Blink/Info.plist new file mode 100644 index 000000000..dc83dbb4d --- /dev/null +++ b/Blink/Info.plist @@ -0,0 +1,41 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 0.619 + CFBundleSignature + ???? + CFBundleVersion + 17 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + arm64 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Blink/PKCardCreateViewController.h b/Blink/PKCardCreateViewController.h new file mode 100644 index 000000000..a7de43b84 --- /dev/null +++ b/Blink/PKCardCreateViewController.h @@ -0,0 +1,44 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +#import "PKCard.h" + + +@interface PKCardCreateViewController : UITableViewController + +@property (weak, nonatomic) PKCard *pkcard; +@property (weak, nonatomic) NSString *passphrase; +@property (weak, nonatomic) NSString *name; +@property (weak, nonatomic) SshRsa *key; + +@end diff --git a/Blink/PKCardCreateViewController.m b/Blink/PKCardCreateViewController.m new file mode 100644 index 000000000..e9ae8d260 --- /dev/null +++ b/Blink/PKCardCreateViewController.m @@ -0,0 +1,127 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import "PKCardCreateViewController.h" + +@interface PKCardCreateViewController () + +@property (weak, nonatomic) IBOutlet UITextField *nameField; +@property (weak, nonatomic) IBOutlet UISegmentedControl *sizeField; +@property (weak, nonatomic) IBOutlet UITextField *passphraseField; +@property (weak, nonatomic) IBOutlet UITextField *repassphraseField; +@property (weak, nonatomic) IBOutlet UIBarButtonItem *createButton; + +@end + +@implementation PKCardCreateViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; + _nameField.delegate = self; + if (_key) { + _nameField.text = @"Name your key"; + _passphraseField.text = _passphrase; + _repassphraseField.text = _passphrase; + _sizeField.userInteractionEnabled = NO; + } +} + +- (IBAction)editChanged:(id)sender +{ + if (_nameField.text.length) { + _createButton.enabled = YES; + } else { + _createButton.enabled = NO; + } +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string +{ + if (textField == _nameField) { + if ([string isEqualToString:@" "]) { + return NO; + } + } + + return YES; +} + +#pragma mark - Navigation + +- (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(id)sender +{ + NSString *errorMsg; + if ([identifier isEqualToString:@"unwindFromCreate"]) { + if ([PKCard withID:_nameField.text]) { + errorMsg = @"Cannot have two keys with the same name."; + } + if ([_nameField.text rangeOfCharacterFromSet:[NSCharacterSet whitespaceCharacterSet]].location != NSNotFound) { + errorMsg = @"Spaces are not permitted in the name."; + } + if (_passphraseField.text.length && ![_passphraseField.text isEqualToString:_repassphraseField.text]) { + errorMsg = @"Passphrases do not match"; + } + if (errorMsg) { + UIAlertView *errorAlert = [[UIAlertView alloc] + initWithTitle:@"Key error" + message:errorMsg + delegate:nil + cancelButtonTitle:@"OK" + otherButtonTitles:nil]; + [errorAlert show]; + return NO; + } + } + return YES; +} + +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. + if (_createButton == sender) { + NSInteger selectedIndex = [_sizeField selectedSegmentIndex]; + int length = [[_sizeField titleForSegmentAtIndex:selectedIndex] intValue]; + // Create and return + SshRsa *key = _key ? _key : [[SshRsa alloc] initWithLength:length]; + _pkcard = [PKCard saveCard:_nameField.text privateKey:[key privateKeyWithPassphrase:_passphraseField.text] publicKey:[key publicKey]]; + } +} + + +@end diff --git a/Blink/PKCardDetailsViewController.h b/Blink/PKCardDetailsViewController.h new file mode 100644 index 000000000..e324712a7 --- /dev/null +++ b/Blink/PKCardDetailsViewController.h @@ -0,0 +1,41 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +#import "PKCard.h" + + +@interface PKCardDetailsViewController : UITableViewController + +@property (weak, nonatomic) PKCard *pkcard; + +@end diff --git a/Blink/PKCardDetailsViewController.m b/Blink/PKCardDetailsViewController.m new file mode 100644 index 000000000..ea5b7e6d3 --- /dev/null +++ b/Blink/PKCardDetailsViewController.m @@ -0,0 +1,106 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import "PKCardDetailsViewController.h" + + +@interface PKCardDetailsViewController () + +@property (weak, nonatomic) IBOutlet UITextField *name; + +@end + +@implementation PKCardDetailsViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; + + _name.text = _pkcard.ID; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (void)viewWillDisappear:(BOOL)animated +{ + if ([self.navigationController.viewControllers indexOfObject:self] == NSNotFound) { + [self performSegueWithIdentifier:@"unwindFromDetails" sender:self]; + } + [super viewWillDisappear:animated]; +} + +- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string +{ + if (textField == _name) { + if ([string isEqualToString:@" "]) { + return NO; + } + } + + return YES; +} + +/* +#pragma mark - Navigation + +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. +} +*/ +- (IBAction)copyPublicKey:(id)sender +{ + UIPasteboard *pb = [UIPasteboard generalPasteboard]; + [pb setString:_pkcard.publicKey]; +} + +- (IBAction)copyPrivateKey:(id)sender +{ + UIPasteboard *pb = [UIPasteboard generalPasteboard]; + [pb setString:_pkcard.privateKey]; +} + +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + if ([segue.identifier isEqualToString:@"unwindFromDetails"]) { + if (_name.text.length && ![_name.text isEqualToString:_pkcard.ID]) { + _pkcard.ID = _name.text; + [PKCard saveIDS]; + } + } +} + +@end diff --git a/Blink/PKCardViewController.h b/Blink/PKCardViewController.h new file mode 100644 index 000000000..bf776e8be --- /dev/null +++ b/Blink/PKCardViewController.h @@ -0,0 +1,37 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + + +@interface PKCardViewController : UITableViewController + +@end diff --git a/Blink/PKCardViewController.m b/Blink/PKCardViewController.m new file mode 100644 index 000000000..f493148e8 --- /dev/null +++ b/Blink/PKCardViewController.m @@ -0,0 +1,245 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +#import "PKCard.h" +#import "PKCardCreateViewController.h" +#import "PKCardDetailsViewController.h" +#import "PKCardViewController.h" + + +@interface PKCardViewController () + +@end + +@implementation PKCardViewController { + NSString *_clipboardPassphrase; + SshRsa *_clipboardKey; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +#pragma mark - Table view data source + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView +{ + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + return PKCard.count; +} + + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath]; + + PKCard *pk = [PKCard.all objectAtIndex:indexPath.row]; + + // Configure the cell... + cell.textLabel.text = pk.ID; + cell.detailTextLabel.text = [self fingerprint:pk.publicKey]; + + return cell; +} + +- (NSString *)fingerprint:(NSString *)publicKey +{ + const char *str = [publicKey UTF8String]; + unsigned char result[CC_MD5_DIGEST_LENGTH]; + CC_MD5(str, (CC_LONG)strlen(str), result); + + NSMutableString *ret = [NSMutableString stringWithCapacity:CC_MD5_DIGEST_LENGTH * 2]; + for (int i = 0; i < CC_MD5_DIGEST_LENGTH; i++) { + [ret appendFormat:@"%02x:", result[i]]; + } + [ret deleteCharactersInRange:NSMakeRange([ret length] - 1, 1)]; + return ret; +} + + +- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath +{ + if (editingStyle == UITableViewCellEditingStyleDelete) { + // Remove PKCard + [PKCard.all removeObjectAtIndex:indexPath.row]; + [self.tableView deleteRowsAtIndexPaths:@[ indexPath ] withRowAnimation:true]; + [PKCard saveIDS]; + [self.tableView reloadData]; + } +} + +- (IBAction)addKey:(id)sender +{ + UIAlertController *keySourceController = [UIAlertController alertControllerWithTitle:@"" message:@"" preferredStyle:UIAlertControllerStyleActionSheet]; + UIAlertAction *generate = [UIAlertAction actionWithTitle:@"Create New" + style:UIAlertActionStyleDefault + handler:^(UIAlertAction *_Nonnull action) { + _clipboardKey = nil; + [self performSegueWithIdentifier:@"createKeySegue" sender:sender]; + }]; + UIAlertAction *import = [UIAlertAction actionWithTitle:@"Import from clipboard" + style:UIAlertActionStyleDefault + handler:^(UIAlertAction *_Nonnull action) { + // ImportKey flow + [self importKey]; + + if (_clipboardKey) { + [self performSegueWithIdentifier:@"createKeySegue" sender:sender]; + } + }]; + UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"Cancel" + style:UIAlertActionStyleCancel + handler:^(UIAlertAction *_Nonnull action){ + // + }]; + + [keySourceController addAction:generate]; + [keySourceController addAction:import]; + [keySourceController addAction:cancel]; + [[keySourceController popoverPresentationController] setBarButtonItem:sender]; + [self presentViewController:keySourceController animated:YES completion:nil]; +} + +- (void)importKey +{ + // Check if key is encrypted. + UIPasteboard *pb = [UIPasteboard generalPasteboard]; + NSString *pbkey = pb.string; + + // Ask for passphrase if it is encrypted. + if (([pbkey rangeOfString:@"^Proc-Type: 4,ENCRYPTED\n" + options:NSRegularExpressionSearch] + .location != NSNotFound) || + ([pbkey rangeOfString:@"^-----BEGIN ENCRYPTED PRIVATE KEY-----\n" + options:NSRegularExpressionSearch] + .location != NSNotFound)) { + UIAlertController *passphraseRequest = [UIAlertController alertControllerWithTitle:@"Encrypted key" + message:@"Please insert passphrase" + preferredStyle:UIAlertControllerStyleAlert]; + [passphraseRequest addTextFieldWithConfigurationHandler:^(UITextField *textField) { + textField.placeholder = NSLocalizedString(@"Enter passphrase", @"Passphrase"); + textField.secureTextEntry = YES; + }]; + UIAlertAction *ok = [UIAlertAction actionWithTitle:@"OK" + style:UIAlertActionStyleDefault + handler:^(UIAlertAction *_Nonnull action) { + // Create a key + UITextField *passphrase = passphraseRequest.textFields.lastObject; + SshRsa *key = [[SshRsa alloc] initFromPrivateKey:pbkey passphrase:passphrase.text]; + if (key == nil) { + // Retry + [self importKey]; + } else { + _clipboardKey = key; + _clipboardPassphrase = passphrase.text; + [self performSegueWithIdentifier:@"createKeySegue" sender:passphraseRequest]; + } + }]; + UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"Cancel" + style:UIAlertActionStyleCancel + handler:^(UIAlertAction *_Nonnull action){ + }]; + [passphraseRequest addAction:ok]; + [passphraseRequest addAction:cancel]; + [self presentViewController:passphraseRequest animated:YES completion:nil]; + + } else { + // If the key isn't encrypted, then try to generate it and go to the create key dialog to complete + SshRsa *key = [[SshRsa alloc] initFromPrivateKey:pbkey passphrase:nil]; + + if (key == nil) { + UIAlertView *errorAlert = [[UIAlertView alloc] + initWithTitle:@"Invalid Key" + message:@"Clipboard content couldn't be validated as a key" + delegate:nil + cancelButtonTitle:@"OK" + otherButtonTitles:nil]; + [errorAlert show]; + } else { + _clipboardKey = key; + _clipboardPassphrase = nil; + } + } +} + +#pragma mark - Navigation + +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. + if ([[segue identifier] isEqualToString:@"keyInfoSegue"]) { + PKCardDetailsViewController *details = segue.destinationViewController; + + NSIndexPath *indexPath = [[self tableView] indexPathForSelectedRow]; + PKCard *pkcard = [PKCard.all objectAtIndex:indexPath.row]; + details.pkcard = pkcard; + return; + } + if ([[segue identifier] isEqualToString:@"createKeySegue"]) { + PKCardCreateViewController *create = segue.destinationViewController; + + if (_clipboardKey) { + create.key = _clipboardKey; + create.passphrase = _clipboardPassphrase; + } + + return; + } +} + +- (IBAction)unwindFromCreate:(UIStoryboardSegue *)sender +{ + NSIndexPath *newIdx = [NSIndexPath indexPathForRow:(PKCard.count - 1) inSection:0]; + [self.tableView insertRowsAtIndexPaths:@[ newIdx ] withRowAnimation:UITableViewRowAnimationBottom]; +} + +- (IBAction)unwindFromDetails:(UIStoryboardSegue *)sender +{ + NSIndexPath *selection = [self.tableView indexPathForSelectedRow]; + [self.tableView reloadRowsAtIndexPaths:@[ selection ] withRowAnimation:UITableViewRowAnimationNone]; +} + +@end diff --git a/Blink/Settings.storyboard b/Blink/Settings.storyboard new file mode 100755 index 000000000..7f08a1eab --- /dev/null +++ b/Blink/Settings.storyboard @@ -0,0 +1,502 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Blink creates PKCS#8 public and private keys, with AES 256 bit encryption. Use "ssh-copy-id [name]" to copy the public key to the server. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Blink/SmartKeys.h b/Blink/SmartKeys.h new file mode 100755 index 000000000..8ca24f712 --- /dev/null +++ b/Blink/SmartKeys.h @@ -0,0 +1,38 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +@interface SmartKeys : UIViewController + +@property(nonatomic, weak) id< UIKeyInput > textInputDelegate; + +@end diff --git a/Blink/SmartKeys.m b/Blink/SmartKeys.m new file mode 100755 index 000000000..d648ba252 --- /dev/null +++ b/Blink/SmartKeys.m @@ -0,0 +1,77 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import "SmartKeys.h" +#import "SmartKeysView.h" + + +@implementation SmartKeys { + NSTimer *_timer; +} + +- (IBAction)symbolUp:(UIButton *)sender +{ + if (_timer != nil) { + [_timer invalidate]; + } +} + +- (IBAction)symbolDown:(UIButton *)sender +{ + NSString *key = sender.titleLabel.text; + NSString *symbol; + + if ([key isEqualToString:KbdUpArrowKey]) { + symbol = UIKeyInputUpArrow; + } else if ([key isEqualToString:KbdDownArrowKey]) { + symbol = UIKeyInputDownArrow; + } else if ([key isEqualToString:KbdLeftArrowKey]) { + symbol = UIKeyInputLeftArrow; + } else if ([key isEqualToString:KbdRightArrowKey]) { + symbol = UIKeyInputRightArrow; + } else if ([key isEqualToString:KbdTabKey]) { + symbol = @"\t"; + } else if ([key isEqualToString:KbdEscKey]) { + symbol = UIKeyInputEscape; + } else { + symbol = [NSString stringWithString:key]; + } + + _timer = [NSTimer scheduledTimerWithTimeInterval:0.2 target:self selector:@selector(symbolEmit:) userInfo:symbol repeats:YES]; + [_timer fire]; +} + +- (void)symbolEmit:(NSTimer *)timer +{ + [_textInputDelegate insertText:timer.userInfo]; +} + +@end diff --git a/Blink/SmartKeys.xib b/Blink/SmartKeys.xib new file mode 100755 index 000000000..99da04582 --- /dev/null +++ b/Blink/SmartKeys.xib @@ -0,0 +1,324 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Blink/SmartKeysView.h b/Blink/SmartKeysView.h new file mode 100755 index 000000000..efe37a461 --- /dev/null +++ b/Blink/SmartKeysView.h @@ -0,0 +1,54 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + + +extern NSString *const KbdLeftArrowKey; +extern NSString *const KbdRightArrowKey; +extern NSString *const KbdUpArrowKey; +extern NSString *const KbdDownArrowKey; +extern NSString *const KbdEscKey; +extern NSString *const KbdTabKey; + +typedef NS_OPTIONS(NSInteger, KbdModifiers) { + KbdCtrlModifier = 1 << 0, + KbdAltModifier +}; + + +@interface SmartKeysView : UIView + +@property (readonly) NSUInteger modifiers; + +-(void)show; + +@end diff --git a/Blink/SmartKeysView.m b/Blink/SmartKeysView.m new file mode 100755 index 000000000..de85bf4fc --- /dev/null +++ b/Blink/SmartKeysView.m @@ -0,0 +1,93 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import "SmartKeysView.h" + +NSString *const KbdLeftArrowKey = @"◀︎"; +NSString *const KbdRightArrowKey = @"▶︎"; +NSString *const KbdUpArrowKey = @"▲"; +NSString *const KbdDownArrowKey = @"▼"; +NSString *const KbdEscKey = @"esc"; +NSString *const KbdTabKey = @"⇥"; + + +@implementation SmartKeysView { + NSTimer *_timer; + __weak IBOutlet UIButton *_ctrlButton; + __weak IBOutlet UIButton *_altButton; + __weak IBOutlet UIStackView *_stack; +} + +- (void)awakeFromNib +{ + self.translatesAutoresizingMaskIntoConstraints = NO; +} + +- (NSUInteger)modifiers +{ + // No need to use the tag, as modifiers are predefined. + NSUInteger modifiers = 0; + if (_ctrlButton.highlighted) { + modifiers |= KbdCtrlModifier; + } + if (_altButton.highlighted) { + modifiers |= KbdAltModifier; + } + + return modifiers; +} + +- (void)show +{ + self.hidden = NO; +} +- (void)layoutSubviews +{ + if (UIDeviceOrientationIsPortrait([UIDevice currentDevice].orientation)) { + // _approxButton.hidden = YES; + // _HashButton.hidden = YES; + // _AtTheRateButton.hidden = YES; + // _DollarButton.hidden = YES; + } else { + + // _approxButton.hidden = NO; + // _HashButton.hidden = NO; + // _AtTheRateButton.hidden = NO; + // _DollarButton.hidden = NO; + } +} + +- (UIInputViewStyle)inputViewStyle +{ + return UIInputViewStyleDefault; +} + +@end diff --git a/Blink/SpaceController.h b/Blink/SpaceController.h new file mode 100644 index 000000000..9159455e9 --- /dev/null +++ b/Blink/SpaceController.h @@ -0,0 +1,37 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + + +@interface SpaceController : UIViewController + +@end diff --git a/Blink/SpaceController.m b/Blink/SpaceController.m new file mode 100644 index 000000000..a749041a2 --- /dev/null +++ b/Blink/SpaceController.m @@ -0,0 +1,366 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import "SpaceController.h" +#import "MBProgressHUD/MBProgressHUD.h" +#import "SmartKeys.h" +#import "TermController.h" + + +@interface SpaceController () + +@property (nonatomic, readonly) UIPageViewController *viewportsController; +@property (nonatomic, readonly) NSMutableArray *viewports; +@property (readonly) TermController *currentTerm; + +@end + +@implementation SpaceController { + NSLayoutConstraint *bottomConstraint; + NSLayoutConstraint *_topConstraint; + UIPageControl *_pageControl; + MBProgressHUD *_hud; +} + +#pragma mark Setup +- (void)loadView +{ + [super loadView]; + NSDictionary *options = [NSDictionary dictionaryWithObject: + [NSNumber numberWithInt:UIPageViewControllerSpineLocationMid] + forKey:UIPageViewControllerOptionSpineLocationKey]; + + self.view.backgroundColor = [UIColor blackColor]; + self.view.opaque = YES; + + _viewportsController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:options]; + _viewportsController.view.backgroundColor = [UIColor blackColor]; + _viewportsController.view.opaque = YES; + _viewportsController.dataSource = self; + _viewportsController.delegate = self; + + [self addChildViewController:_viewportsController]; + [self.view addSubview:_viewportsController.view]; + [_viewportsController didMoveToParentViewController:self]; + [_viewportsController.view setTranslatesAutoresizingMaskIntoConstraints:NO]; + + + // Container view fills out entire root view. + _topConstraint = [NSLayoutConstraint constraintWithItem:_viewportsController.view attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.view attribute:NSLayoutAttributeTop multiplier:1 constant:0]; + [self.view addConstraint:_topConstraint]; + [self.view addConstraint:[NSLayoutConstraint constraintWithItem:_viewportsController.view attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self.view attribute:NSLayoutAttributeLeft multiplier:1 constant:0]]; + [self.view addConstraint:[NSLayoutConstraint constraintWithItem:_viewportsController.view attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self.view attribute:NSLayoutAttributeRight multiplier:1 constant:0]]; + self->bottomConstraint = [NSLayoutConstraint constraintWithItem:_viewportsController.view attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self.bottomLayoutGuide attribute:NSLayoutAttributeTop multiplier:1 constant:0]; + [self.view addConstraint:self->bottomConstraint]; + + // Termination notification + UIApplication *app = [UIApplication sharedApplication]; + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(applicationWillTerminate:) + name:UIApplicationWillTerminateNotification + object:app]; +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + [_viewports enumerateObjectsUsingBlock:^(TermController *term, NSUInteger idx, BOOL * _Nonnull stop) { + [term terminate]; + }]; +} + +- (void)viewDidLoad +{ + [self createShellAnimated:NO completion:nil]; + [self addGestures]; + [self registerForKeyboardNotifications]; +} + +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + +- (void)registerForKeyboardNotifications +{ + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(keyboardWasShown:) + name:UIKeyboardDidShowNotification + object:nil]; + + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(keyboardWillBeHidden:) + name:UIKeyboardWillHideNotification + object:nil]; +} + +- (void)addGestures +{ + UITapGestureRecognizer *twoFingersTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTwoFingersTap:)]; + [twoFingersTap setNumberOfTouchesRequired:2]; + [twoFingersTap setNumberOfTapsRequired:1]; + [self.view addGestureRecognizer:twoFingersTap]; + + UIPanGestureRecognizer *twoFingersDrag = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handleTwoFingersDrag:)]; + [twoFingersDrag setMinimumNumberOfTouches:2]; + [twoFingersDrag setMaximumNumberOfTouches:2]; + twoFingersDrag.delegate = self; + [self.view addGestureRecognizer:twoFingersDrag]; +} + +#pragma mark Events +- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer +{ + if ([gestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]] && [otherGestureRecognizer isKindOfClass:[UIPinchGestureRecognizer class]]) { + [gestureRecognizer requireGestureRecognizerToFail: otherGestureRecognizer]; + + return NO; + } + return YES; +} + +// The Space will be responsible to accommodate the work environment for widgets, adjusting the size, making sure it doesn't overlap content, +// moving widgets or scrolling to them when necessary, etc... +// In this case we make sure we take the SmartBar/Keys into account. +- (void)keyboardWasShown:(NSNotification *)sender +{ + CGRect frame = [sender.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; + CGRect newFrame = [self.view convertRect:frame fromView:[[UIApplication sharedApplication] delegate].window]; + self->bottomConstraint.constant = newFrame.origin.y - CGRectGetHeight(self.view.frame); + + UIView *termAccessory = [self.currentTerm.terminal inputAccessoryView]; + if ([termAccessory isHidden]) { + self->bottomConstraint.constant += termAccessory.frame.size.height; + } + + [self.view setNeedsUpdateConstraints]; +} +- (void)keyboardWillBeHidden:(NSNotification *)aNotification +{ + self->bottomConstraint.constant = 0; + [self.view updateConstraintsIfNeeded]; + [self.view setNeedsUpdateConstraints]; +} + +- (void)handleTwoFingersTap:(UITapGestureRecognizer *)sender +{ + [self createShellAnimated:YES completion:nil]; +} + +- (void)handleTwoFingersDrag:(UIPanGestureRecognizer *)sender +{ + CGFloat y = [sender translationInView:self.view].y; + if (y > 0) { + _topConstraint.constant = y; + _viewportsController.view.alpha = 1 - (y / 100); + } + if (sender.state == UIGestureRecognizerStateEnded) { + CGPoint velocity = [sender velocityInView:self.view]; + if (velocity.y > 100) { + _viewportsController.view.alpha = 1; + _topConstraint.constant = 0; + [self.view layoutIfNeeded]; + [self closeCurrentSpace]; + } else { + _topConstraint.constant = 0; + _viewportsController.view.alpha = 1; + [UIView animateWithDuration:0.25 + animations:^{ + [self.view layoutIfNeeded]; + }]; + } + } +} + +- (UIViewController *)pageViewController:(UIPageViewController *)pageViewController + viewControllerAfterViewController:(UIViewController *)viewController +{ + if (nil == viewController) { + return _viewports[0]; + } + NSInteger idx = [_viewports indexOfObject:viewController]; + NSParameterAssert(idx != NSNotFound); + if (idx >= [_viewports count] - 1) { + return nil; + } + + return _viewports[idx + 1]; +} + +- (UIViewController *)pageViewController:(UIPageViewController *)pageViewController + viewControllerBeforeViewController:(UIViewController *)viewController +{ + if (nil == viewController) { + return _viewports[0]; + } + NSInteger idx = [_viewports indexOfObject:viewController]; + NSParameterAssert(idx != NSNotFound); + + if (idx <= 0) { + return nil; + } + + return _viewports[idx - 1]; +} + +- (void)pageViewController:(UIPageViewController *)pageViewController didFinishAnimating:(BOOL)finished previousViewControllers:(NSArray *)previousViewControllers transitionCompleted:(BOOL)completed +{ + if (completed) { + [self displayHUD]; + } +} + +#pragma mark Spaces +- (TermController *)currentTerm { + return _viewportsController.viewControllers[0]; +} + +- (UIPageControl *)pageControl +{ + if (!_pageControl) { + _pageControl = [[UIPageControl alloc] init]; + _pageControl.currentPageIndicatorTintColor = [UIColor cyanColor]; + } + + _pageControl.numberOfPages = [_viewports count]; + + return _pageControl; +} + +- (void)displayHUD +{ + if (!_hud) { + _hud = [[MBProgressHUD alloc] initWithView:self.view]; + _hud.mode = MBProgressHUDModeCustomView; + _hud.bezelView.color = [UIColor darkGrayColor]; + _hud.contentColor = [UIColor whiteColor]; + [self.view addSubview:_hud]; + } + + _hud.userInteractionEnabled = NO; + + UIPageControl *pages = [self pageControl]; + + NSInteger idx = [_viewports indexOfObject:self.currentTerm]; + NSString *title = self.currentTerm.terminal.title; + if (title.length == 0) { + title = @"blink"; + } + + _hud.label.text = title; + + + pages.currentPage = idx; + _hud.customView = pages; + + [_hud showAnimated:YES]; + _hud.alpha = 0.6; + + [_hud hideAnimated:YES afterDelay:1.f]; +} + +- (void)closeCurrentSpace +{ + NSInteger idx = [_viewports indexOfObject:self.currentTerm]; + + NSInteger numViewports = [_viewports count]; + + [self.currentTerm terminate]; + + __weak typeof(self) weakSelf = self; + if (idx == 0 && numViewports == 1) { + // Only one viewport. Create a new one to replace this + [self createShellAnimated:NO + completion:^(BOOL didComplete) { + [weakSelf.viewports removeObjectAtIndex:0]; + }]; + } else if (idx >= [_viewports count] - 1) { + // Last viewport, go to the previous + [_viewportsController setViewControllers:@[ _viewports[idx - 1] ] + direction:UIPageViewControllerNavigationDirectionReverse + animated:YES + completion:^(BOOL didComplete) { + // Remove viewport from the list after animation + if (didComplete) { + [weakSelf.viewports removeLastObject]; + [weakSelf displayHUD]; + } + }]; + } else { + [_viewportsController setViewControllers:@[ _viewports[idx + 1] ] + direction:UIPageViewControllerNavigationDirectionForward + animated:YES + completion:^(BOOL didComplete) { + // Remove viewport from the list after animation + if (didComplete) { + [weakSelf.viewports removeObjectAtIndex:idx]; + [weakSelf displayHUD]; + } + }]; + } +} + +- (void)createShellAnimated:(BOOL)animated completion:(void (^)(BOOL finished))completion +{ + TermController *term = [[TermController alloc] init]; + + if (_viewports == nil) { + _viewports = [[NSMutableArray alloc] init]; + } + NSInteger numViewports = [_viewports count]; + + if (numViewports == 0) { + [_viewports addObject:term]; + } else { + NSInteger idx = [_viewports indexOfObject:self.currentTerm]; + if (idx == numViewports - 1) { + // If it is the last one, insert there. + [_viewports addObject:term]; + } else { + // Insert next to the current terminal. + [_viewports insertObject:term atIndex:idx + 1]; + } + } + + __weak typeof(self) weakSelf = self; + [_viewportsController setViewControllers:@[ term ] + direction:UIPageViewControllerNavigationDirectionForward + animated:animated + completion:^(BOOL didComplete) { + if (completion) { + completion(didComplete); + } + if (didComplete) { + [weakSelf displayHUD]; + } + }]; +} + +@end diff --git a/Blink/TermController.h b/Blink/TermController.h new file mode 100644 index 000000000..ca08ac88b --- /dev/null +++ b/Blink/TermController.h @@ -0,0 +1,49 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +#import "TermView.h" + + +@interface TermController : UIViewController + +@property (readonly) FILE *termout; +@property (readonly) FILE *termin; +@property (readonly) FILE *termerr; +@property (readonly) struct winsize *termsz; +@property (strong, nonatomic) TerminalView *terminal; +@property (strong, nonatomic) UIScrollView *containerView; + +- (void)terminate; +- (void)sigwinch; + +@end diff --git a/Blink/TermController.m b/Blink/TermController.m new file mode 100644 index 000000000..08575d2ff --- /dev/null +++ b/Blink/TermController.m @@ -0,0 +1,154 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import "MCPSession.h" +#import "Session.h" +#import "TermController.h" +#import "fterm.h" + + +@interface TermController () +@end + +@implementation TermController { + int _pinput[2]; + MCPSession *_session; + BOOL _viewIsLocked; +} + +- (void)write:(NSString *)input +{ + // Trasform the string and write it, with the correct sequence + const char *str = [input UTF8String]; + write(_pinput[1], str, strlen(str)); +} + +- (void)loadView +{ + [super loadView]; + WKWebViewConfiguration *theConfiguration = [[WKWebViewConfiguration alloc] init]; + [theConfiguration.userContentController addScriptMessageHandler:self name:@"interOp"]; + _terminal = [[TerminalView alloc] initWithFrame:self.view.frame configuration:theConfiguration]; + _terminal.delegate = self; + + self.view = _terminal; +} + +- (void)terminate +{ + // Disconnect message handler + [_terminal.webView.configuration.userContentController removeScriptMessageHandlerForName:@"interOp"]; + + [_session kill]; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + + [_terminal loadTerminal]; + + [self createPTY]; +} + +- (void)createPTY +{ + pipe(_pinput); + _termout = fterm_open(_terminal, 0); + _termerr = fterm_open(_terminal, 0); + _termin = fdopen(_pinput[0], "r"); + _termsz = malloc(sizeof(struct winsize)); +} + +- (void)startSession +{ + // Until we are able to duplicate the streams, we have to recreate them. + TermStream *stream = [[TermStream alloc] init]; + stream.in = _termin; + stream.out = _termout; + stream.err = _termerr; + stream.control = self; + stream.sz = _termsz; + + _session = [[MCPSession alloc] initWithStream:stream]; + [_session executeWithArgs:@""]; +} + +// Since ViewController is a WKScriptMessageHandler, as declared in the ViewController interface, it must implement the userContentController:didReceiveScriptMessage method. This is the method that is triggered each time 'interOp' is sent a message from the JavaScript code. +- (void)userContentController:(WKUserContentController *)userContentController + didReceiveScriptMessage:(WKScriptMessage *)message +{ + NSDictionary *sentData = (NSDictionary *)message.body; + NSString *operation = sentData[@"op"]; + NSDictionary *data = sentData[@"data"]; + + if ([operation isEqualToString:@"sigwinch"]) { + [self updateTermRows:data[@"rows"] Cols:data[@"columns"]]; + } else if ([operation isEqualToString:@"terminalready"]) { + [self startSession]; + } +} + +- (void)updateTermRows:(NSNumber *)rows Cols:(NSNumber *)cols +{ + _termsz->ws_row = rows.shortValue; + _termsz->ws_col = cols.shortValue; + [_session sigwinch]; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (void)dealloc +{ + if (_termin) { + fclose(_termin); + _termin = NULL; + } + if (_termout) { + fclose(_termout); + _termout = NULL; + } + if (_termerr) { + fclose(_termerr); + _termerr = NULL; + } + if (_termsz) { + free(_termsz); + _termsz = NULL; + } +} + + +@end diff --git a/Blink/TermView.h b/Blink/TermView.h new file mode 100644 index 000000000..18a065dca --- /dev/null +++ b/Blink/TermView.h @@ -0,0 +1,53 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import +#import + + +@protocol TerminalDelegate + +- (void)write:(NSString *)input; + +@end + +@interface TerminalView : UIView + +@property (nonatomic) WKWebView *webView; +@property (weak) id delegate; +@property (nonatomic, readonly, weak) NSString *title; + +- (id)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration *)configuration; +- (void)setScrollEnabled:(BOOL)scroll; +- (void)loadTerminal; +- (void)write:(NSString *)data; + +@end diff --git a/Blink/TermView.m b/Blink/TermView.m new file mode 100644 index 000000000..67dd26a7e --- /dev/null +++ b/Blink/TermView.m @@ -0,0 +1,537 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#include + +#import "SmartKeys.h" +#import "SmartKeysView.h" +#import "TermView.h" + +static NSDictionary *CTRLCodes = nil; + + +@interface CC : NSObject + ++ (void)initialize; ++ (NSString *)CTRL:(NSString *)c; ++ (NSString *)ESC:(NSString *)c; ++ (NSString *)KEY:(NSString *)c; + +@end + +@implementation CC ++ (void)initialize +{ + CTRLCodes = @{ + @"[" : @"\x1B", + @"]" : @"\x1D", + @"\\" : @"\x1C", + @"^" : @"\x1E", + @"_" : @"\x1F" + }; +} + ++ (NSString *)CTRL:(NSString *)c +{ + NSString *code; + + if ((code = [CTRLCodes objectForKey:c]) != nil) { + return code; + } else { + char x = [c characterAtIndex:0]; + return [NSString stringWithFormat:@"%c", x - 'a' + 1]; + } +} + ++ (NSString *)ESC:(NSString *)c +{ + if (c == nil || [c length] == 0) { + return @"\x1B"; + } else { + return [NSString stringWithFormat:@"\x1B%c", [c characterAtIndex:0]]; + } +} + ++ (NSString *)KEY:(NSString *)c +{ + if (c == UIKeyInputUpArrow) { + return @"\x1B[A"; + } else if (c == UIKeyInputDownArrow) { + return @"\x1B[B"; + } else if (c == UIKeyInputLeftArrow) { + return @"\x1B[D"; + } else if (c == UIKeyInputRightArrow) { + return @"\x1B[C"; + } else if (c == UIKeyInputEscape) { + return @"\x1B"; + } else if ([c isEqual:@"\n"]) { + return @"\r"; + } + return c; +} +@end + +@interface TerminalView () +@end + +@implementation TerminalView { + WKWebView *_webView; + BOOL _capsMapped; + // option + e on iOS lets introduce an accented character, that we override + BOOL _disableAccents; + BOOL _dismissInput; + BOOL _pasteMenu; + NSMutableArray *_kbdCommands; + SmartKeys *_smartKeys; + UIView *cover; + UIPinchGestureRecognizer *_pinchGesture; + NSTimer *_pinchSamplingTimer; + +} + +- (id)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration *)configuration +{ + self = [super initWithFrame:frame]; + + if (self) { + _webView = [[WKWebView alloc] initWithFrame:self.frame configuration:configuration]; + _capsMapped = YES; + [self setKbdCommands]; + + _webView.opaque = NO; + [self addSubview:_webView]; + + UITapGestureRecognizer *tapBackground = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(activeControl:)]; + [tapBackground setNumberOfTapsRequired:1]; + tapBackground.delegate = self; + _dismissInput = YES; + [self addGestureRecognizer:tapBackground]; + + UILongPressGestureRecognizer* longPressBackground = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:nil]; + [longPressBackground setNumberOfTapsRequired:1]; + longPressBackground.delegate = self; + // _dismissInput = YES; + [self addGestureRecognizer:tapBackground]; + + _pinchGesture = [[UIPinchGestureRecognizer alloc] initWithTarget: self action: @selector(handlePinch:)]; + _pinchGesture.delegate = self; + [self addGestureRecognizer:_pinchGesture]; + + self.inputAssistantItem.leadingBarButtonGroups = @[]; + self.inputAssistantItem.trailingBarButtonGroups = @[]; + + _webView.translatesAutoresizingMaskIntoConstraints = NO; + + [_webView.topAnchor constraintEqualToAnchor:self.topAnchor].active = YES; + [_webView.leadingAnchor constraintEqualToAnchor:self.leadingAnchor].active = YES; + [_webView.trailingAnchor constraintEqualToAnchor:self.trailingAnchor].active = YES; + [_webView.bottomAnchor constraintEqualToAnchor:self.bottomAnchor].active = YES; + + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil]; + } + return self; +} + +#pragma mark Terminal Control +- (void)setScrollEnabled:(BOOL)scroll +{ + _webView.scrollView.scrollEnabled = scroll; +} + +- (void)loadTerminal +{ + NSString *path = [[NSBundle mainBundle] pathForResource:@"term" ofType:@"html"]; + NSURL *url = [NSURL fileURLWithPath:path]; + // NSURL *url = [NSURL URLWithString:@"http://www.apple.com"]; + NSURLRequest *request = [NSURLRequest requestWithURL:url]; + [_webView loadRequest:request]; +} + +// Write data to terminal control +- (void)write:(NSString *)data +{ + NSData *jsonData = [NSJSONSerialization dataWithJSONObject:@[ data ] options:0 error:nil]; + NSString *jsString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; + NSString *jsScript = [NSString stringWithFormat:@"write_to_term(%@[0])", jsString]; + + [_webView evaluateJavaScript:jsScript completionHandler:nil]; +} + +- (NSString *)title +{ + return _webView.title; +} + +#pragma mark On-Screen keyboard - UIKeyInput +- (UIKeyboardAppearance)keyboardAppearance +{ + return UIKeyboardAppearanceDark; +} +- (UITextAutocorrectionType)autocorrectionType +{ + return UITextAutocorrectionTypeNo; +} + +- (UIView *)inputAccessoryView +{ + return [_smartKeys view]; +} + +- (void)keyboardWillHide:(NSNotification *)sender +{ + // Always hide the AccessoryView. + self.inputAccessoryView.hidden = YES; + _capsMapped = YES; + // If keyboard hides, then become first responder. This ensures there is a responder for the long focus events. + //[self becomeFirstResponder]; +} + +- (void)keyboardWillShow:(NSNotification *)sender +{ + UIView *iaView = self.inputAccessoryView; + + CGRect frame = [sender.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; + // Not needed, since iOS 8.0 respects the coordinates. + //CGRect inViewFrame = [self.view convertRect:frame fromView:nil]; + CGRect bounds = self.bounds; + CGRect intersection = CGRectIntersection(frame, bounds); + + // If the intersection is only the accesoryView, we have a external keyboard + if (intersection.size.height == [iaView frame].size.height) { + iaView.hidden = YES; + } else { + _capsMapped = NO; + iaView.hidden = NO; + } +} + +// WKWebView has its own gestures going on, so we have to handle them properly and only use ours when those fail. +- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer +{ + if ([otherGestureRecognizer isKindOfClass:[UITapGestureRecognizer class]]) { + // Tap should always enable this control too. + [otherGestureRecognizer requireGestureRecognizerToFail:gestureRecognizer]; + _dismissInput = NO; + } + if ([otherGestureRecognizer isKindOfClass:[UILongPressGestureRecognizer class]]) { + [_webView becomeFirstResponder]; + [gestureRecognizer requireGestureRecognizerToFail:otherGestureRecognizer]; + } + return NO; +} + +- (void)activeControl:(UITapGestureRecognizer *)gestureRecognizer +{ + if (![self isFirstResponder]) { + [self becomeFirstResponder]; + } else { + if (_pasteMenu) { + [[UIMenuController sharedMenuController] + setMenuVisible:NO + animated:YES]; + } else { + [[UIMenuController sharedMenuController] setTargetRect:self.frame + inView:self]; + + UIMenuItem *pasteItem = [[UIMenuItem alloc] initWithTitle:@"Paste" + action:@selector(yank:)]; + + [[UIMenuController sharedMenuController] + setMenuItems:@[ pasteItem ]]; + [[UIMenuController sharedMenuController] + setMenuVisible:YES + animated:YES]; + } + _pasteMenu = !_pasteMenu; + } +} + +- (void) handlePinch:(UIPinchGestureRecognizer *)gestureRecognizer +{ + if (gestureRecognizer.state == UIGestureRecognizerStateBegan) { + //_lastPinchScale = _webView.scrollView.zoomScale; + [_webView evaluateJavaScript:@"scaleTermStart();" completionHandler:nil]; + if (_pinchSamplingTimer) + [_pinchSamplingTimer invalidate]; + + _pinchSamplingTimer = [NSTimer scheduledTimerWithTimeInterval:0.2 target:self selector:@selector(pinchSampling:) userInfo:nil repeats:YES]; + [_pinchSamplingTimer fire]; + } + + if (gestureRecognizer.state == UIGestureRecognizerStateEnded ) { + [_pinchSamplingTimer invalidate]; + } + //[_webView evaluateJavaScript:[NSString stringWithFormat:@"scaleTerm(%f);", scale] completionHandler:nil]; + + + +// _webView.transform = CGAffineTransformScale(gestureRecognizer.view.transform, 1/gestureRecognizer.scale, 1/gestureRecognizer.scale); +// CGFloat scale = round(1.0 - (0.04 * (_lastPinchScale - gestureRecognizer.velocity)) * 100) / 100.0; +// +// if (gestureRecognizer.scale < 0.5 || gestureRecognizer.scale > 2.0) +// return; +// if (scale != _lastPinchScale) { +// NSLog(@"%f", scale); +// [_webView evaluateJavaScript:[NSString stringWithFormat:@"scaleTerm(%f);", scale] completionHandler:nil]; +// _lastPinchScale = scale; +// } +} + +- (void)pinchSampling:(NSTimer *)timer +{ + [_webView evaluateJavaScript:[NSString stringWithFormat:@"scaleTerm(%f);", _pinchGesture.scale] completionHandler:nil]; +} + +- (BOOL)canBecomeFirstResponder +{ + return YES; +} + +- (BOOL)canResignFirstResponder +{ + // Make sure this control cannot resign in favor of the WKWebView during a tap. + // if (!_dismissInput) { + // _dismissInput = YES; + // return NO; + // } + return YES; +} + +- (BOOL)becomeFirstResponder +{ + if (!_smartKeys) { + _smartKeys = [[SmartKeys alloc] init]; + } + + _smartKeys.textInputDelegate = self; + cover.hidden = YES; + return [super becomeFirstResponder]; +} + +- (BOOL)hasText +{ + return YES; +} + +- (void)deleteBackward +{ + // Send a delete backward key to the buffer + [_delegate write:@"\x7f"]; +} + +- (void)insertText:(NSString *)text +{ + if (_disableAccents) { + // If the accent switch is on, the next character should remove them. + //CFStringTransform((__bridge CFMutableStringRef)mtext, nil, kCFStringTransformStripCombiningMarks, NO); + text = [[NSString alloc] initWithData:[text dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES] encoding:NSASCIIStringEncoding]; + _disableAccents = NO; + } + + // Discard CAPS unless it is a control sequence or non single character. + if (_capsMapped == YES && text.length == 1 && [text characterAtIndex:0] > 0x1F) { + text = [text lowercaseString]; + } + + NSUInteger modifiers = [(SmartKeysView *)[_smartKeys view] modifiers]; + if (modifiers & KbdCtrlModifier) { + [_delegate write:[CC CTRL:text]]; + } else if (modifiers & KbdAltModifier) { + [_delegate write:[CC ESC:text]]; + } else { + [_delegate write:[CC KEY:text]]; + } +} + +#pragma mark External Keyboard + +- (void)setKbdCommands +{ + _kbdCommands = [NSMutableArray array]; + + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:@"v" modifierFlags:UIKeyModifierControl action:@selector(yank:)]]; + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:@"+" modifierFlags:UIKeyModifierControl action:@selector(increaseFontSize:)]]; + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:@"-" modifierFlags:UIKeyModifierControl action:@selector(decreaseFontSize:)]]; + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:@"0" modifierFlags:UIKeyModifierControl action:@selector(resetFontSize:)]]; + + NSString *charset = @"qwertyuiopasdfghjklzxcvbnm!@#$%^&*()=_[]{}'\\\"|`~,./<>?"; + NSUInteger length = charset.length; + unichar buffer[length + 1]; + [charset getCharacters:buffer range:NSMakeRange(0, length)]; + + [charset enumerateSubstringsInRange:NSMakeRange(0, length) + options:NSStringEnumerationByComposedCharacterSequences + usingBlock:^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) { + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:substring modifierFlags:UIKeyModifierControl action:@selector(ctrlSeq:)]]; + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:substring modifierFlags:UIKeyModifierAlternate action:@selector(metaSeq:)]]; + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:substring modifierFlags:UIKeyModifierCommand action:@selector(ctrlSeq:)]]; + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:substring modifierFlags:UIKeyModifierAlphaShift action:@selector(ctrlSeq:)]]; + NSRange first = [substring rangeOfComposedCharacterSequenceAtIndex:0]; + NSRange match = [substring rangeOfCharacterFromSet:[NSCharacterSet letterCharacterSet] options:0 range:first]; + if (match.location != NSNotFound) { + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:substring modifierFlags:UIKeyModifierShift action:@selector(shiftSeq:)]]; + } + + }]; + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:UIKeyInputDownArrow modifierFlags:0 action:@selector(arrowSeq:)]]; + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:UIKeyInputUpArrow modifierFlags:0 action:@selector(arrowSeq:)]]; + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:UIKeyInputRightArrow modifierFlags:0 action:@selector(arrowSeq:)]]; + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:UIKeyInputLeftArrow modifierFlags:0 action:@selector(arrowSeq:)]]; + [_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:UIKeyInputEscape modifierFlags:0 action:@selector(escSeq:)]]; +} + +- (NSArray *)keyCommands +{ + return _kbdCommands; +} + +- (void)yank:(id)sender +{ + NSString *str = [UIPasteboard generalPasteboard].string; + + if (str) { + [_delegate write:str]; + } +} + +- (void)increaseFontSize:(UIKeyCommand *)cmd +{ + [_webView evaluateJavaScript:@"increaseTermFontSize();" completionHandler:nil]; +} + +- (void)decreaseFontSize:(UIKeyCommand *)cmd +{ + [_webView evaluateJavaScript:@"decreaseTermFontSize();" completionHandler:nil]; +} + +- (void)resetFontSize:(UIKeyCommand *)cmd +{ + [_webView evaluateJavaScript:@"resetTermFontSize();" completionHandler:nil]; +} + +- (void)escSeq:(UIKeyCommand *)cmd +{ + [_delegate write:[CC KEY:cmd.input]]; +} + +- (void)arrowSeq:(UIKeyCommand *)cmd +{ + [_delegate write:[CC KEY:cmd.input]]; +} + +// Shift prints uppercase in the case CAPSLOCK is blocked +- (void)shiftSeq:(UIKeyCommand *)cmd +{ + if ([cmd.input length] == 0) { + return; + } else { + [_delegate write:[cmd.input uppercaseString]]; + } +} + +- (void)ctrlSeq:(UIKeyCommand *)cmd +{ + [_delegate write:[CC CTRL:cmd.input]]; +} + +- (void)metaSeq:(UIKeyCommand *)cmd +{ + if ([cmd.input isEqual:@"e"]) { + //_disableAccents = YES; + } + + [_delegate write:[CC ESC:cmd.input]]; +} + +// This are all key commands capture by UIKeyInput and triggered +// straight to the handler. A different firstresponder than UIKeyInput could +// capture them, but we would not capture normal keys. We remap them +// here as commands to the terminal. + +// Cmd+c +- (void)copy:(id)sender +{ + if ([sender isKindOfClass:[UIMenuController class]]) { + [_webView copy:sender]; + } else { + [_delegate write:[CC CTRL:@"c"]]; + } +} +// Cmd+x +- (void)cut:(id)sender +{ + [_delegate write:[CC CTRL:@"x"]]; +} +// Cmd+v +- (void)paste:(id)sender +{ + if ([sender isKindOfClass:[UIMenuController class]]) { + [self yank:sender]; + } else { + [_delegate write:[CC CTRL:@"v"]]; + } +} +// Cmd+a +- (void)selectAll:(id)sender +{ + [_delegate write:[CC CTRL:@"a"]]; +} +// Cmd+b +- (void)toggleBoldface:(id)sender +{ + [_delegate write:[CC CTRL:@"b"]]; +} +// Cmd+i +- (void)toggleItalics:(id)sender +{ + [_delegate write:[CC CTRL:@"i"]]; +} +// Cmd+u +- (void)toggleUnderline:(id)sender +{ + [_delegate write:[CC CTRL:@"u"]]; +} + +- (BOOL)canPerformAction:(SEL)action withSender:(id)sender +{ + if ([sender isKindOfClass:[UIMenuController class]]) { + // The menu can only perform copy and paste methods + if (action == @selector(paste:)) { + return YES; + } + return NO; + } + // From the keyboard we validate everything + return YES; +} + +@end diff --git a/Blink/fterm.h b/Blink/fterm.h new file mode 100644 index 000000000..9c75d3275 --- /dev/null +++ b/Blink/fterm.h @@ -0,0 +1,42 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +#import "TermController.h" + +FILE *fterm_open(TerminalView *wv, unsigned int size); + +@interface fTerm : NSObject + +@end + + diff --git a/Blink/fterm.m b/Blink/fterm.m new file mode 100644 index 000000000..86eb39c9d --- /dev/null +++ b/Blink/fterm.m @@ -0,0 +1,74 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#include + +#import + +#import "fterm.h" + + +static int writefn(void *handler, const char *buf, int size); +static int closefn(void *handler); + +FILE *fterm_open(TerminalView *wv, unsigned int size) +{ + FILE *desc = funopen(CFBridgingRetain(wv), NULL, writefn, NULL, closefn); + setvbuf(desc, NULL, _IONBF, 0); + return desc; +} + +static int writefn(void *handler, const char *buf, int size) +{ + TerminalView *term = (__bridge TerminalView *)(handler); + if (!term) { + errno = EBADF; + return -1; + } + //NSString *s = [NSString stringWithFormat:@"%.*s", size, buf]; + NSString *s = [[NSString alloc] initWithBytes:buf length:size encoding:NSUTF8StringEncoding]; + while (s == nil) { + // Reduce size in case it failed (due to UTF8 chunks) + s = [[NSString alloc] initWithBytes:buf length:--size encoding:NSUTF8StringEncoding]; + } + + [term write:s]; + return size; +} + +static int closefn(void *handler) +{ + CFRelease(handler); + return 0; +} + +@implementation fTerm : NSObject +@end diff --git a/BlinkUITests/BlinkUITests.m b/BlinkUITests/BlinkUITests.m new file mode 100644 index 000000000..4ef96c20f --- /dev/null +++ b/BlinkUITests/BlinkUITests.m @@ -0,0 +1,40 @@ +// +// webctrlUITests.m +// webctrlUITests +// +// Created by Carlos on 30/11/15. +// Copyright © 2015 Carlos. All rights reserved. +// + +#import + +@interface BlinkUITests : XCTestCase + +@end + +@implementation BlinkUITests + +- (void)setUp { + [super setUp]; + + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + self.continueAfterFailure = NO; + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + [[[XCUIApplication alloc] init] launch]; + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +@end diff --git a/BlinkUITests/Info.plist b/BlinkUITests/Info.plist new file mode 100644 index 000000000..ba72822e8 --- /dev/null +++ b/BlinkUITests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..ed697918d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,56 @@ +## Version 0.713 +- Releasing Blink as Open Source + +- Copy and Paste support. +- SmartKeys: On-Screen keyboard display, with support for keyboard combos. +- Modifier keys support on SmartKeys: continuous presses. +- Closing a Terminal with Two Fingers down gesture. +- Space swiping notifications. +- Font size control with keyboard +- Fixed CAPS as Ctrl problem with normal characters. +- Smooth swiping spaces gestures. +- Scroll. + +- New libssh2 based backend for ssh command. +- ssh command with exec, pty and shell support. +- DNS and Bonjour name resolution. Back to My Mac support. +- Known Hosts verification. +- Support for interactive authentication methods. +- Public Key authorization support. +- Settings dialog for Blink configuration. +- PK creation from settings. +- Support to run an external command from Mosh or SSH. + +- ssh-copy-id command. +- stderr support for Sessions. +- Duplicated streams for each Session, attached or detached. +- Terminals freeing resources and correctly killing Sessions after termination. +- Mosh prediction modes support. + +# Version 0.511 +This version has seen major improvements on Mosh, terminal display and keyboard support. Please read previous notes: +- The terminal is faster and most of the identified glitches have been fixed. +- We have added a Powerline font so you can have fun and test tools like zsh, tmux or spacemacs! +- Mosh is now cleaner when restoring. +- CAPS as Ctrl now preserves the state. Mapped Cmd and Alt special events to the right commands. + +# Version 0.504 +This version continues the previous goal to stabilise Mosh by exposing it to real life scenarios. Many problems have been fixed since last version: +- Terminal problems have been fixed (misalignments, problems when switching to other apps, etc..) +- Mosh issues fixed: Restore the session after device suspension; Mosh crashing right after start; Threading problems restarting a session. + +## New from this version: +- We now support Mosh < 1.2.5 +- Added SplitView to continue the terminal work. + +## What to test: +- Problems establishing a connection, multiple concurrent sessions open, closing connections correctly, reconnecting after long periods +- Keyboard support: For this version we have configured Ctrl, Cmd and Caps as Ctrl, Alt as meta. +- Terminal rendering glitches: Complex terminal layouts, split view positioning, Unicode, color rendering. + +# Version 0.429 +The purpose of this build is to test our Mosh version in real life scenarios that could help us identify errors and misbehaviours. Sorry if there are no bells and whistles yet, we want everyone to focus on stabilising our Mosh changes. +##What to test: +- Problems establishing a connection, multiple concurrent sessions open, closing connections correctly, reconnecting after long periods... +- Keyboard support: For this version we have configured Ctrl, Cmd and Caps as Ctrl, Alt as meta. +- Terminal rendering glitches: Unicode, color rendering, garbled rendering... diff --git a/COPYING b/COPYING new file mode 100644 index 000000000..6e8a78dcb --- /dev/null +++ b/COPYING @@ -0,0 +1,710 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + + END OF GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS + + + +ADDITIONAL TERMS APPLICABLE TO BLINK + + The following additional terms (Additional Terms) supplement and modify the +GNU General Public License, Version 3 (GPL) applicable to Blink. In addition to the +terms and conditions of the GPL, Blink is subject to the further restrictions below. + +1. OpenSSL + +As a special exception, the copyright holdersa give +permission to link the code of portions of this program with the +OpenSSL library under certain conditions as described in each +individual source file, and distribute linked combinations including +the two. + +You must obey the GNU General Public License in all respects for all +of the code used other than OpenSSL. If you modify file(s) with this +exception, you may extend this exception to your version of the +file(s), but you are not obligated to do so. If you do not wish to do +so, delete this exception statement from your version. If you delete +this exception statement from all source files in the program, then +also delete it here. + +2. LEGAL NOTICES; NO TRADEMARK LICENSE; ORIGIN. You must reproduce faithfully all trademark, +copyright and other proprietary and legal notices on any copies of the Program or any other +required author attributions. This license does not grant you rights to use any copyright holder +or any other partys name, logo, or trademarks. Neither the name of the copyright holder or +its affiliates, or any other party who modifies and/or conveys the Program may be used to endorse +or promote products derived from this software without specific prior written permission. +The origin of the Program must not be misrepresented; you must not claim that you wrote the original +Program. Altered source versions must be plainly marked as such, and must not be misrepresented as +being the original Program. diff --git a/Frameworks/MBProgressHUD b/Frameworks/MBProgressHUD new file mode 160000 index 000000000..3de6e1398 --- /dev/null +++ b/Frameworks/MBProgressHUD @@ -0,0 +1 @@ +Subproject commit 3de6e1398f0ab7e5a4375549f946870c844cdba2 diff --git a/Frameworks/UICKeyChainStore b/Frameworks/UICKeyChainStore new file mode 160000 index 000000000..c3715073e --- /dev/null +++ b/Frameworks/UICKeyChainStore @@ -0,0 +1 @@ +Subproject commit c3715073ec0fbaedff7429484397d96aef5aa620 diff --git a/Media.xcassets/AppIcon.appiconset/Contents.json b/Media.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..8d83298ae --- /dev/null +++ b/Media.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,86 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x", + "filename" : "Icon-Small@2x.png" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x", + "filename" : "Icon-Small@3x.png" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x", + "filename" : "Icon-40@2x.png" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x", + "filename" : "Icon-40@3x.png" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x", + "filename" : "Icon-60@2x.png" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x", + "filename" : "Icon-60@3x.png" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x", + "filename" : "Icon-Small.png" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x", + "filename" : "Icon-Small@2x.png" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x", + "filename" : "Icon-40.png" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x", + "filename" : "Icon-40@2x.png" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x", + "filename" : "Icon-76.png" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x", + "filename" : "Icon-76@2x.png" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x", + "filename" : "Icon-83.5@2x.png" + } + ], + "info" : { + "version" : 1, + "author" : "makeappicon" + } +} \ No newline at end of file diff --git a/Media.xcassets/AppIcon.appiconset/Icon-40.png b/Media.xcassets/AppIcon.appiconset/Icon-40.png new file mode 100644 index 0000000000000000000000000000000000000000..1af4cd621c544c5d46eef556e9e6bf50fe9e63a9 GIT binary patch literal 3820 zcmV4Tx0C=38mUmQC*A|D*y?1({%`g-xL+`x}AiX!K(nMjH8DJ;_4l^{dA)*2i zMMMM@L4qO%jD{kyB8r88V8I@cAfUux6j4!mGqP56<>kGXm){>}eQTe+_dRFteb%}F zki7l5ymVL!fHa~vAmcQ z7uoQ$&mudEnVrUCi&%W-40ak@%snFBnkD3j81WZzQ5KhzE#g}u)=U+qaYg)A9Gk{r zW&(gBiR}UoD@nwrA|~;}Lfk~W6aXA4@hgu1iUph;f%sBx=^43vZeo&vuFKM+o7vhj z=-!;{RE|Jk6vSkuF!^k{TY6dsla~v?;+;QBMqFFEsL0l4w$|20=Ei1U73#lk{!NK{ zyGXBsKlcox^?kAZm0x;20E}5tZFYRI#qR~6V>1Bq_rKUQ4+0=5>RbE3SNEZb=OsxX z$gndp$O~ z2}Gii1cZ;QLyD0~q#kKOx{zMvCNhFdBkxcc6a_^`8KLY^-l*j$7HTzW9jX*njXHvA zNA;j?qDE0Os847zS_y4{wnO`%BhiWIY;+O265WVyLtjGQMvtT4U@#aOMh9bq@y0}9 zk}+#ArI`JgR?K_yPPlex4vr&>=Vw!U)NPjf5&f z3*i#sA>kE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I1evVSO~**|KQ4z;`%x;lFm-XoD{RG7kU%002ovPDHLkV1jVcCl>$! literal 0 HcmV?d00001 diff --git a/Media.xcassets/AppIcon.appiconset/Icon-Small@3x.png b/Media.xcassets/AppIcon.appiconset/Icon-Small@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..b3c90f660440847fa382ad1636d0f48547d18ac9 GIT binary patch literal 6466 zcmV-I8NKF-P)4Tx0C=38mUmQC*A|D*y?1({%`g-xL+`x}AiX!K(nMjH8DJ;_4l^{dA)*2i zMMMM@L4qO%jD{kyB8r88V8I@cAfUux6j4!mGqP56<>kGXm){>}eQTe+_dRFteb%}F zki7l5ymVL!fHa~vAmcQ z7uoQ$&mudEnVrUCi&%W-40ak@%snFBnkD3j81WZzQ5KhzE#g}u)=U+qaYg)A9Gk{r zW&(gBiR}UoD@nwrA|~;}Lfk~W6aXA4@hgu1iUph;f%sBx=^43vZeo&vuFKM+o7vhj z=-!;{RE|Jk6vSkuF!^k{TY6dsla~v?;+;QBMqFFEsL0l4w$|20=Ei1U73#lk{!NK{ zyGXBsKlcox^?kAZm0x;20E}5tZFYRI#qR~6V>1Bq_rKUQ4+0=5>RbE3SNEZb=OsxX z$gndp$O~ z2}Gii1cZ;QLyD0~q#kKOx{zMvCNhFdBkxcc6a_^`8KLY^-l*j$7HTzW9jX*njXHvA zNA;j?qDE0Os847zS_y4{wnO`%BhiWIY;+O265WVyLtjGQMvtT4U@#aOMh9bq@y0}9 zk}+#ArI`JgR?K_yPPlex4vr&>=Vw!U)NPjf5&f z3*i#sA>kE~NK_}<5`&3c;s#Leh59VbXchJ<=;OnXFBA zCP$M6>atgt3H=1Y2UgM2$qd#E`@bNxY<%q>JP#$vnwQ$&-=;lG9Rn zDQzh?DW=pqsT!$MQo~ZS(iCYk=|Jf;=~C&V(pRM?Ww0{ZG9EH)nL?REG8bjWC@3{{8fLrtcZP`{)0Q)gslWG!XGWpiX}WY5Ts&=8t7&4-psE2EvD z-J!jgQfv(`8kfN|tp+n)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00001 diff --git a/Media.xcassets/Contents.json b/Media.xcassets/Contents.json new file mode 100644 index 000000000..da4a164c9 --- /dev/null +++ b/Media.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Media.xcassets/Settings/Contents.json b/Media.xcassets/Settings/Contents.json new file mode 100644 index 000000000..da4a164c9 --- /dev/null +++ b/Media.xcassets/Settings/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Media.xcassets/Settings/appearance.imageset/Contents.json b/Media.xcassets/Settings/appearance.imageset/Contents.json new file mode 100644 index 000000000..6390ab07a --- /dev/null +++ b/Media.xcassets/Settings/appearance.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "appearance.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "appearance@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "appearance@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Media.xcassets/Settings/appearance.imageset/appearance.png b/Media.xcassets/Settings/appearance.imageset/appearance.png new file mode 100644 index 0000000000000000000000000000000000000000..9770812df5a1a884484ef1c99713bc104d379324 GIT binary patch literal 716 zcmV;-0yF)IP)WFU8GbZ8()Nlj2>E@cM*00J;cL_t(I%e9qVNRv?* z$A8=Fd|L)XH}eCW;3^2Li&D3gmSnLs8?}PE>N+TbF1qTbpl*V0`Vz96Ku{t^gqqzH zSvRw?FDu>lI$0QEY%kiI<@UZ?7vXZXavSS`!?`&B^E-c@^E~J1wsf9yOU@16IjdQq z0AUJ8G~2M>qcdIXQVRuL4%ZhN3NU9i3wr)jq+n@d@hs2Qdl)HyayhC@sy-@r6zGw5~0uTMBW0b3Fj@M1otPDNeq8 z#lzMe$e#Ua?w`x@%8o~6nTh!?Jer*a;A$X<@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vB=+1RWA|QnjC7B^fLX;)i zT<(Z$E+Sw7(5h5;L~+zuIOnNWC`eMNNKh)d=J!vI56gf@6fq|za?S5Yr&6)jY-Z!E znaoK}MnWb|asTq)AW$+bl})o}QKZ+?<@K?>rInL6oOA~QRHWZ~;;)^* zK%3h=Ig+?LJ}+6wh8el{j5qZ5^2%?Gw7K2L!2X2`s4<(-#i_XJ^I<)4iopmgx2OOM zKx@@93ibLi=a2XFP<`fyk=wjVMai^O&fo5zP?;H(MIKbJio%IfOJttDpbbg=~t@KawO+nZbN z8TX4JKI`a+&EDF3mo9PI>HPcJ)<1ye>m&cEhKQ<5jOQHdEI9-vnQyzh@rOdO-3*k0 z1CFk!fA7Qo@I&B#0&9C+@>GG<_PS(6euKSsssQIV*lVZWi$wtUkEeE9C5z-q(^Uqw n@iF)6w&?q&+V=gsssa84lD71g+@6OI00000NkvXXu0mjf7b>g} literal 0 HcmV?d00001 diff --git a/Media.xcassets/Settings/appearance.imageset/appearance@3x.png b/Media.xcassets/Settings/appearance.imageset/appearance@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..129aedf4882d4c278c9ad0ceea0407ccded51a25 GIT binary patch literal 2014 zcmV<42O;>0P)WFU8GbZ8()Nlj2>E@cM*00%-zL_t(|+U=ZcY!ufO zfWMj9*EtHVqiRc?R2H8yoMgy?*b`dLRA4dNH=K4Qu1Iz30!&+M`5sR4NW+X7EZ)?c5tI zV>KFnk)Dpda2q=lm);k`kbEz3DNz%&nROQNc1||WElD6+qnSK7t(HP#JVo^lvl~RD zEVJDh&*9u0G?MgCI-W~NnB5@utz5zPlaermX#LVt)zvlox`tk*Vxz%8QGOm#8vpvX z!{w%|!@}#eb+Ze^&r(x(IW3j=&``g1ooqL;r>dHot}fiOVfxgHB2PUQ!@C9f82tp` z@p!1}>f)!BReWx?%pMo}`NTwCU7k*oUhlWADr*-%x==xRXD5T6>GA)j6ogt7SsfkC zJNdb!hlTmA?{ZHMzpT5+hs`Z_PF4^|*6C1*A|fCP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KYM^evp(j_do!c6ovIAC6jLd>+DRwv(y0z0-(C9 zo9(4#lMCcznMk!fH$ea#ZMntoy^jFK6N{qI)ITtHK>+-?qLO3dye4S2D?C|z%9r+^ zvmgL=l%1uqZ**vWzN3>B$BuKQw|8z1mLsLt>10juNxB_(?z+e0;b?OUtNvSz+0Upl zARVfSWT9G3MnpJfMd4z150CQ10_ufRi^IVwlX*st9eg`K2qFj~2qFk#Qqv~{zXT3` w2|Usw=Cf7Y^O5{~g)!!D6Xp|;F@B`+f39!4PEynxlmGw#07*qoM6N<$f{#ts5C8xG literal 0 HcmV?d00001 diff --git a/Media.xcassets/Settings/host.imageset/Contents.json b/Media.xcassets/Settings/host.imageset/Contents.json new file mode 100644 index 000000000..f31fac050 --- /dev/null +++ b/Media.xcassets/Settings/host.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "host.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "host@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "host@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Media.xcassets/Settings/host.imageset/host.png b/Media.xcassets/Settings/host.imageset/host.png new file mode 100644 index 0000000000000000000000000000000000000000..f4432d80b18c950fd7086b901d96a9567dfb087f GIT binary patch literal 694 zcmV;n0!jUeP)WFU8GbZ8()Nlj2>E@cM*00J6GL_t(I%e9qVNK9j{1sJEmuIXm*3){t znYPodS;e=m4KmpKm_$60-i*Umb19SPtnVay+nSc_s?J$Mc|{qoL+{gSSu-v%uF5IP zQd3FB_pHYE`vWLRW$EcB6&~~l^2>O9EP`k2AsY7V#J#V9bsN_p6^STGl}PwI!F$6z zfAR*a-I7tSb5-t7Wh!*u>>v{UL66UmrfQ^83pAZhhad`^ICq4#jtV-CcIMu({3lLJ zdlN0~3jeEy94oW|?&=a;e7X2xB8kjgC^Xgc7c-s8k%F%pZ; zG7=mmaCe9=pT?=GbujU5GWU!x_gz3=TtwHI>rDNePOF!#wsHRIDdKXRi^s0y-tk0a zlIFv1?!3Ce%+xPtrlV-8h9C-9Z5FI{GXReUp5_-tZ}$Mzb(^TFbzrrd=ZzL)>|>a| z?%VmT+Z=XzcHrE-4VSlm{%z>t2&2OvcoBS?Rrg=xCoS#2z& c`P^sv7oUZ+LGCDKq5uE@07*qoM6N<$f+&JCR{#J2 literal 0 HcmV?d00001 diff --git a/Media.xcassets/Settings/host.imageset/host@2x.png b/Media.xcassets/Settings/host.imageset/host@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..1bf1306fcd6d0789da3d608e689af28597080056 GIT binary patch literal 1268 zcmVWFU8GbZ8()Nlj2>E@cM*00dY`L_t(o!|j=EOjUIp z$3N$s`@rSF3?E=bVnB)y>B<5@r3;t>y4#%(tQx#A*6d-uansh;YWc!?;o4la=8P9W z*`f$q1cnlbi4ZnHy#n(h5;`y=^1^*S=kx-{aBcz@PH`K*cjs)s-}(H{|NH;_{=ffU z;I3JttobgJbWGNXMrM&oe#K*Q$%PdI6{P?Iz_!>OS3Dt760_KhZn>kXuY84Ijk4ws zN9aok0tE^_@^?dSvk+vGnv~1-0{OoDL0+>QW zuoh&Kv3-NKz)KQhXLJF@CB_C>mJkGOfk*C)%qXv8Xjog|#uLrhuk_3ato=$4XMSqd z7P!Cf7JDuGsVuFT7HmaH4SOy78MyI>wrMRaJd}}P=jcc!k&NvdSiLTZ$5%Z@bnIe6 z!$T280YMZ{6%|EMaSl7_@4H3UrEV^r@1VZwEQ+k$7f%!5m-oFyTZ@g>#tZjOlPDsH z0+J-5H|UUb60%>$=k+7Y@?Ci49-kERQ>#OH^<)UMLWio&6yx2gH&XU^9CN>g1c zz$lCYvR}sQ@jfs{YUb0VJ@*XRyE6FV)AE0(G-vP1VCzmZ01eem{P@*LZuSn~c6so5 zeJHYmD2eC|dO}P_V&bCN_QGb;v)A9vWl>FsM?Y%LO~ag7)r^RaK?4?W(rGt&JB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*Su=@4G5EBIDkFe<~z}|_*jdVuiJkCqq9$AjB!?q00000NkvXXu0mjfxh(@{ literal 0 HcmV?d00001 diff --git a/Media.xcassets/Settings/key.imageset/key@3x.png b/Media.xcassets/Settings/key.imageset/key@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..5a37a99341024617cc07a916182d60515b6a8e1d GIT binary patch literal 1706 zcmV;b237fqP)WFU8GbZ8()Nlj2>E@cM*00s_8L_t(|+U?wZY!hW1 z!13?h_1a$7u6yg+!C+&94Fz;4GJ^{E0?|lRj4$ymio`@?jQ^>L@%0a*(P(^)#`uB> zMuSGh_n{y!qL47AFoq6YabtAUwcGl#uDuuksH?neY-LjmyWf9zd+sj%-0yjQ&(qyi zV2HTYzRchhj#Y`zgroNf6A9pWAi_jNI2uEk$OwmHh?tS?8WTMm2E)t<6T*ZrAxsDp z!h|p(Ob8RggfJmY2ou7D_|L*J-Y1k~3q|E6C@zJ<$tB1(8N)DWYurbuJ$ULvxV;6; zyXrj3XID^GQ;yxG;Be<5StJky4z&D1ur0vWcQ@eQxeqO+oq7Q*ccu-R+)9Yu_yuOK#9$!srAa!a$d6h^sr0h^p_`bud;wO)mesLVyOk>*xSl}k0h&JFj;`q^XVs{l zU(4;U-Any-3$sQT47*d|hNo8In=yIBOv*`!;;9}kxoa7<=g&$HgkuO#rH`v0xfxrY z{n)Je8`xEnkK0#B_551wE+u!m#`OA`)L(l6qL?-`3sr;PSX}7P-jxxDiAVx3>T#Kabw7 zFniWFvHRO5w3Ir25TYbfHNTcQOV7^ii-jV5`|9Uxe5-+E|3GGcNArHRt=WvPrW|LH zYgB{hk=Gi&?aYO9s5++xQ54a29YGL~WDA2{f+!*gpz8(;Z(G8fcfLU5r`txv7&U~& zCR18fhDA;v(%%>7vu8eF-7B9C{ox!oBv~5wzARZJ6qjQZH!fYSZ+!X=643;|Y~Fpu z%{t-1GQY&loF!*vw!;Uz>Dc8Tw!NlmIZ+l1ClzzeW4CbnMQ0*P;@BbVE`_4WC7Esi zj(xQL*fRWyMIk53B0xo5HQwq;2;w+Eq!P&^QcG5>BbHCY$c_Imx9w=9qj^8Nri~p! zl>X_PhGC#3RYc41hpR~ya=@XxJ;--&e8t|4KV#^|*dcUXr}LNgOi8Ocr-qsZvxXm2 zN(+z`>;H-nXg$EHdtPSaTMcNcHa=COzb{U_CzjbRttw;Dilub!ZRgPM2ajnl+vG8i z5r$!47)H8O{+-sko}R!BPM8cM-A+I3gNl+!>yIt0dGKxgJAWJB302>r9yYz*!0aV+ zGhO72OXm^k?&GWHKc+VjA{ie5L7FQ4@c2d zEi+?v73UM~>;^#~)*Zp>un`UQVdw_Bt}_r#(A^$HS2Y}kPC^}jvTI!WFU8GbZ8()Nlj2>E@cM*00F;AL_t(I%k9*$OB+!f z!13?BTtf~eLl;4iixeD99R#a%^}rUogytW}P|Ol%gNvY999w8iz%5Nd+Eq9+iH8va znM#)Q92A@cAzpG`?saLU+{H@a-25#Me($}{`|;k7rz{nVQ$QVfMKoanSrIYHZ>ugM zM(=RJBgGSZ7iuu^F_$B)>;Db4ZJT_xdOw`jbvhRpw7Om1&Cm0#*(9^Dz*oy+R@eD? zd5JG2FD54VaefZK-1Ic*RO;cYXxlcQO_OWKp=_Esu1n?ckXE-#wb7v3XmHf&P&Q4< zrb*kjLx!?cEXuzVN1K}fc*7yR!GNTuany3?vA8)-@qp-Kf{>cfMogG}yV`Xa#*YkK=D)IgFln=YRtk-HI_upIb(D&)PE@O!V zx1Pr{RSk{3exF1c_`?Iyj)dw#J)M385&VHNKR5DHK@Q-e%P>$SyAa zyWIfhQYrF=K~mFLU0y~R0ZS=KY8rXN;ANmAM#Am0Gt#=w%;Y2h?*o+tqKB}UW literal 0 HcmV?d00001 diff --git a/Media.xcassets/Settings/keyboard.imageset/keyboard@2x.png b/Media.xcassets/Settings/keyboard.imageset/keyboard@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..dc643fab7e19c01ceb6f4b78ec4d009e08dd7d08 GIT binary patch literal 1125 zcmV-r1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tMN}+0+;ab(M z5(1H|?5($-BQ=Ts_ zt_nh53y&kVJD}1`>Q~t|`*HdfDr>eKwA|LUY&~nSJ)o+T{=IwQm1PKJ8{u=iK?s4% z>BR8Sqs)(Ml%hQt1OV*s?8KMHjxoblD3#cFpY-=5{`xg*?ZhYlcJ!y2D|Jgy5;7Ag}K_rD$$! zM7XI5*+KzN6@_UNr4-%aFkDV2lw=Z%OG|7#S(4Bl4nx&6JXI8w^kYIPIzk~dx?EeI zYgox&&z@m)V!{xLPmYYB(dEME_&63)sTK7eoi-DgsL3JJU4frwE)8G+OmZLbCWq!23RcH3o8$x_Z2HVN#z)n(yEMdJ?XaX zUL%vwVnkr2!$670b!fF`#aeysM9bzd|&{w!-2_Yl;sy1 zrReMG!jYby?Ex`6H;11eJTOFppB_GpT(O8>r>BuBXP=uTKDQemA3O+$DB{k{OjW|S zQ4s&xSejj6W!uUWvp@osA?y2D{O%Ei}OlcK8PiK5{8y?gfA2t9mm z@%dO4y4Iwms`h{6rzbh9RiW!X`{W=v2o8dS;2<~%4uXT=AUFsv90Uhpk%j~OOcor11~I|Nh+S^?slL0000WFU8GbZ8()Nlj2>E@cM*00P8GL_t(I%e9qhNK{c2 z$A9m+&b-MjQ>zb^wwa|B#z16YRF;ZG%a<$_Q(Gx)AtVwhh%DPaBxDi=rING|1yMw4 zrJ0q4q1iUL6irPNr8dos@4Y_tax9HvJa9jpbN=`D4(FbGpD-z9bEYN8qg3qvCg28B zB)uAJm9vD9j9kTC(B5#--B19r`yqd5-R_{i<@K+2^sQv^%venCKajMmkhH>Lnp-J)n zuGknkmZv2Lm=hhz-Nxs1SgbgEWNMpUYRlp5K~Ytz8=DyuHjG|B9oU+WB8&yme literal 0 HcmV?d00001 diff --git a/Media.xcassets/Settings/shortcuts.imageset/shortcuts@2x.png b/Media.xcassets/Settings/shortcuts.imageset/shortcuts@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..0cd9f7b440a5932f52e74fa53d1cb8d396c0e75d GIT binary patch liter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L*?a~v6~~Fe|*Kb zf&c)tgu>r9J&kN#a(MfqP%l_il#f-5f8aHbc|Z^Z-aUH`pH|nRzO^0h!AWvXUN)Y4 ztj)EBRmLqSVMw9icD*ENj2!Ik0+KBr#P za#=w8{LD0--eELF7lf&=AC`U_r&A&kc0RFkMEhm)X7ltb*PDX!)7x)Hw@M?bPuNF}Iy<7K~7Gi?SV43=IH z1c51PC8ntPtIOWwC$ZzmiJ<++Bor>cz7sNu#A{A+qp7nSR=XV%kqDVdiJ(Lx-gW=E zbQQ%r{v0xhkPAGF%Y|lrHy*gBh!2RCLaR|>idx0%JOI?UwqwoivXDA9a0G$He6L|o zk|g33awKWgNKh&K3QKyU89#isG^~{=tV&l+Q!6?QMl7B+!*68xN~h6;pKN{+{SHUS zojYIG0E49$_uW-6s_o4#1Ae^e1z7Elu>%1B)r~DU{@HmH+>r)KB!pNb^x7sn(cWXi zyJ!B370bl&cceoo6b$$ogl}UQv>S|g>(p61x^sWn5F(b3NK`4I zmeY`UA3-+v!fLZeG>X(}R0BtyMMBPx-ef`FEdU66uQ8l-nJp1Xj*KRqMzh~Rl?jom zn@AD^5d#qe5d#r$`2=EL0>{1t_8k$Ec~tN|lAo+FhW*=w$pmD$KhpRg2FMB_h~Lp6 P00000NkvXXu0mjf;D{)2 literal 0 HcmV?d00001 diff --git a/README.md b/README.md new file mode 100644 index 000000000..742613d36 --- /dev/null +++ b/README.md @@ -0,0 +1,59 @@ +# Blink Mobile Shell for iOS +We are excited to introduce you to Blink. Blink is a unique mobile shell for iOS. We are creating the terminal we wanted to have and use all day: fully configurable, great keyboard support, great terminal rendering, and crazy fast thanks to [Mosh](https://github.com/mobile-shell/mosh). We won't stop there, and plan to convert this into a great work environment by adding other tools like scp. Hope you find on it a trusty and enjoyable tool too. + +# Obtaining Blink +We want to share all the fun by inviting you to our Alpha. Would love to have you on board! If you would like to participate, follow and tweet us [@BlinkShell](https://twitter.com/BlinkShell) a little about your interest and usage scenarios. Invitations will be sent out in waves, please be patient if you do not receive yours immediately. + +Bugs should be reported here on GitHub. Crash reports will be automatically reported back to us thanks to HockeyApp. If you have any questions or want to make sure we do not miss on an interesting feature, please send your suggestions to our Twitter account [@BlinkShell](https://twitter.com/BlinkShell). We would love to discuss them with you! Please do not use Twitter to report bugs. + +We can't wait to receive your valuable feedback. Enjoy! + +# Using Blink +Our UI is very straightforward and optimizes the experience on touch devices for the really important part, the terminal. You will jump right into a very simple shell, so you will know what to do. Here are a few more tricks: +- Use two fingers tap to create a new shell. +- Move between shells by swapping your finger. +- You can exit the session and get back to the shell to open a new connection. +- You can also close a session by dragging to fingers down. +- Use pinch gesture to increase or reduce size of text. You can also use Cmd+ or Cmd- if using the keyboard. +- Copy and Paste by selecting text o tapping the screen. +- Run 'config' to setup your keys. Install them to a server through ssh-copy-id. +- Ctrl and Alt modifiers at the SmartKeys bar allow for continuous presses, like in a real keyboard. +- In an external keyboard, use Cmd or Caps as Ctrl and Alt as meta (Default configuration). + +# Changelog +## Version 0.713 +- Releasing Blink as Open Source + +- Copy and Paste support. +- SmartKeys: On-Screen keyboard display, with support for keyboard combos. +- Modifier keys support on SmartKeys: continuous presses. +- Closing a Terminal with Two Fingers down gesture. +- Space swiping notifications. +- Font size control with keyboard +- Fixed CAPS as Ctrl problem with normal characters. +- Smooth swiping spaces gestures. +- Scroll. + +- New libssh2 based backend for ssh command. +- ssh command with exec, pty and shell support. +- DNS and Bonjour name resolution. Back to My Mac support. +- Known Hosts verification. +- Support for interactive authentication methods. +- Public Key authorization support. +- Settings dialog for Blink configuration. +- PK creation from settings. + +- ssh-copy-id command. +- stderr support for Sessions. +- Duplicated streams for each Session, attached or detached. +- Terminals freeing resources and correctly killing Sessions after termination. +- Mosh prediction modes support. + +[View all changes](CHANGELOG.md) + +# Attributions +- [Mosh](https://mosh.mit.edu) was written by Keith Winstein, along with Anders Kaseorg, Quentin Smith, Richard Tibbetts, Keegan McAllister, and John Hood. +- This product includes software developed by the OpenSSL Project +for use in the OpenSSL Toolkit. (http://www.openssl.org/). +- [Libssh2](https://www.libssh2.org) +- Entypo pictograms by Bruce Daniel www.entypo.com. \ No newline at end of file diff --git a/Resources/locales.bundle/UTF-8/LC_CTYPE b/Resources/locales.bundle/UTF-8/LC_CTYPE new file mode 100644 index 0000000000000000000000000000000000000000..b17dd82283510566ab4f0b730a65ee4d41132ef2 GIT binary patch literal 81360 zcmeI52XqzH+JDu4Y8pJsEESl>D%l6WGrD>&^9af&KytLA+yac2}24q4O)Pwra z0J3X5N7j&>(ySr5kO%ot01ZnshtRLpNj2{?t0m`e$@yDy{+67-CFgI+`CD@S)ycBw zuYL|!-~3j8j`U;=)qegp4$Jm`8E@JktyCnpskCi!z1KzCRcyOD=eP2))ZfbMLSLP8 zTh+02{;Jle)-efM5}*mmfK14OdQcx4KsMw+F62Qz6hK2LghtR9nm|)n3z|W5XaOx@ zZCD4^g;r1m#ZUsRVLfOAZDDfEez-cfLPKPt# zOgIb9hC$F14uf8BI2-}JVNIR?9L{wvoCoK_1yBYT!bNZ~TmqNEWpFtRh9PhT423J< zD!3Z1fnjhhTnE>~4R9me1UJJia4Y;9{sXtc|H18W2MmW1FcL<=Xcz-`!d);H?uL8d zUKj`W!Ts<6jE4u|A$S-bfeG*^JO&ftad-lrgs0$Xcm|$@S@0=*2A{(h@FmQKuV4;* z4d1}G@Ev>)bKwX05$3^9Fdr7cLiibG!mqFheuKsEJNyAl;1ieyb#?wp>f63+qEWXb&A=1K1EYf{kGl=m?#lGi(Z7pet+!o5L2cC2R#-!#1!jYzN!J4zMGX z!cMR=>;k*OZqN<>0lULLVGr07{snu%-mnjJhkao`*dGpn1EB{T1P8+*a47VI!=M)& z4o5(5SX1XehjX0^=fU}K0hGaoa1mS#m%ycP8C(v7VF+9SL*Yue3a*B0U>IBr*TMC0 z1KbEV!Od_B+zS7O|G;hVe{eh80mESgjD%4z8pgn#a2Je)yWt+V7skPTa6dc%FaUJ=o&cJLHd3AzEQrUGcW0LQ|%eVjJ-=T8+cU)+h_C(d?0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 zE@57wV=jCClG^rVne#>cU-nol{=TB){O?}F_pe+X%bU0A_KVgpZ~xL|=0W2MZ8a{= zb@Hm?*L04keL1gTZPb)2>a;^}-m1>OobxR+R;zQ{s9#kbQ*AY&eX46$TWwgi{mW`~ zj@tC&@3KvG;~A~5#rv$Oo-4Pt<#;ji7{oOY*FanYaSg;Z5Z6Fl1ApEch`z5cZ;tAf z*7Ey%Exu1?E^nI-{yAcK+r{mvpQ)lT<2C$FzTB~1nK6vcwKDt0`=sWq@>oRUs#mpz zUfsIN+l1br;+if0UE+#7XILG-i;vG&x6eucEaR(Msfs^K|Nid%sA}xPb$b6b5pKI8 zxu#=AV_wtoR(AioJa$d}txa1tV_g%=J4Q|Ws;w^fA5y7KbUuBa=$zr_N>zQRZr^CX zs`k;k%KJszN9V0>zpD1tv8vj?@;S0o+v$7l3ZT!?kY&#oo_lp=eeW(^=A6;_ll@-i z{jRQauHJ94a9`yr_mAFJvttQubmIpsWl~sxQP*t1OLwMYZ?aJFqX)j@&NWD*GXzO))jj8)FNYf*Jj&eP#9OWF$dy@WBWO!)pQw?!V!Pj#=+cGbN` z=cuk->!WSf^lRllt?Bcx{__oCEY}1rInSD4O}rPKBYrO{J_fa!n^hUt+8lp%Y_lqT zT#U`08>*{q?#$-kIt*ic5KJJS2X;rqZeBQe9Rq5l3>|0m;uYBAU z>C>ugTlu_o<*U-i71_70`d|6DE7GS`*|zd|>%#T($g1?Qw)@s}p1OEnm5*7|`D^ + + + + + + + + +

+ + + diff --git a/Sessions/MCPSession.h b/Sessions/MCPSession.h new file mode 100644 index 000000000..ccf63e1ca --- /dev/null +++ b/Sessions/MCPSession.h @@ -0,0 +1,45 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +#import "Session.h" + + +@interface MCPSession : Session + +- (id)initWithInputStream:(FILE *)tIn outputStream:(FILE *)tOut; +- (int)main:(int)argc argv:(char **)argv; +- (void)executeWithArgs:(NSString *)args; +- (void)sigwinch; +- (void)close; + +@end diff --git a/Sessions/MCPSession.m b/Sessions/MCPSession.m new file mode 100644 index 000000000..d428444e9 --- /dev/null +++ b/Sessions/MCPSession.m @@ -0,0 +1,208 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#include +#include + +#include "linenoise.h" + +#import "MCPSession.h" +#import "MoshSession.h" +#import "PKCard.h" +#import "SSHCopyIDSession.h" +#import "SSHSession.h" + +#define MCP_MAX_LINE 4096 + +static const char *available_commands = + "Available commands:\r\n" + "mosh: Start a mosh session.\r\n" + // "ssh: Send a command through ssh.\r\n" + "ssh-copy-id: Copy an identity to the server.\r\n" + "help: Prints this.\r\n" + "exit: Close this window.\r\n" + "\r\n"; + + +@implementation MCPSession { + Session *childSession; +} + +- (NSArray *)splitCommandAndArgs:(NSString *)cmdline +{ + NSRange rng = [cmdline rangeOfString:@" "]; + if (rng.location == NSNotFound) { + return @[ cmdline, @"" ]; + } else { + return @[ + [cmdline substringToIndex:rng.location], + [cmdline substringFromIndex:rng.location + 1] + ]; + } +} + +- (void)setTitle +{ + fprintf(_stream.control.termout, "\033]0;blink\007"); +} + +- (int)main:(int)argc argv:(char **)argv +{ + char *line; + argc = 0; + argv = nil; + + NSString *docsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; + NSString *filePath = [docsPath stringByAppendingPathComponent:@"history.txt"]; + + const char *history = [filePath UTF8String]; + + linenoiseHistoryLoad(history); + + while ((line = [self linenoise:"blink> "]) != nil) { + if (line[0] != '\0' && line[0] != '/') { + linenoiseHistoryAdd(line); + linenoiseHistorySave(history); + + NSString *cmdline = [[NSString alloc] initWithFormat:@"%s", line]; + NSArray *arr = [self splitCommandAndArgs:cmdline]; + NSString *cmd = arr[0]; + + if ([cmd isEqualToString:@"help"]) { + [self showCommands]; + } else if ([cmd isEqualToString:@"mosh"]) { + // At some point the parser will be in the JS, and the call will, through JSON, will include what is needed. + // Probably passing a Server struct of some type. + + [self runMoshWithArgs:cmdline]; + } // else if ([cmd isEqualToString:@"ssh"]) { + // // At some point the parser will be in the JS, and the call will, through JSON, will include what is needed. + // // Probably passing a Server struct of some type. + + // [self runSSHWithArgs:cmdline]; + // } + else if ([cmd isEqualToString:@"exit"]) { + break; + } else if ([cmd isEqualToString:@"ssh-copy-id"]) { + [self runSSHCopyIDWithArgs:cmdline]; + } else if ([cmd isEqualToString:@"config"]) { + [self showConfig]; + } else { + [self out:"Unknown command. Type 'help' for a list of available operations"]; + } + } + + [self setTitle]; // Temporary, until the apps restore the right state. + + free(line); + } + + [self out:"Bye!"]; + + return 0; +} + +- (void)showConfig +{ + UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Settings" bundle:nil]; + UINavigationController *vc = [sb instantiateViewControllerWithIdentifier:@"NavSettingsController"]; + dispatch_sync(dispatch_get_main_queue(), ^{ + [_stream.control presentViewController:vc animated:YES completion:NULL]; + }); +} + +- (void)runSSHCopyIDWithArgs:(NSString *)args +{ + childSession = [[SSHCopyIDSession alloc] initWithStream:_stream]; + [childSession executeAttachedWithArgs:args]; + childSession = nil; +} + +- (void)runMoshWithArgs:(NSString *)args +{ + childSession = [[MoshSession alloc] initWithStream:_stream]; + [childSession executeAttachedWithArgs:args]; + childSession = nil; +} + +- (void)runSSHWithArgs:(NSString *)args +{ + childSession = [[SSHSession alloc] initWithStream:_stream]; + [childSession executeAttachedWithArgs:args]; + childSession = nil; +} + +- (void)showCommands +{ + [self out:available_commands]; +} + +- (void)out:(const char *)str +{ + fprintf(_stream.out, "%s\r\n", str); +} + +- (char *)linenoise:(char *)prompt +{ + char buf[MCP_MAX_LINE]; + if (_stream.in == NULL) { + return nil; + } + + int count = linenoiseEdit(fileno(_stream.in), _stream.out, buf, MCP_MAX_LINE, prompt, _stream.sz); + if (count == -1) { + return nil; + } + + return strdup(buf); +} + +- (void)sigwinch +{ + if (childSession != nil) { + [childSession sigwinch]; + } +} + +- (void)kill +{ + if (childSession != nil) { + [childSession kill]; + } + + // Close stdin to end the linenoise loop. + if (_stream.in) { + fclose(_stream.in); + _stream.in = NULL; + } +} + +@end diff --git a/Sessions/MoshSession.h b/Sessions/MoshSession.h new file mode 100644 index 000000000..570c99d4d --- /dev/null +++ b/Sessions/MoshSession.h @@ -0,0 +1,45 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +#import "Session.h" + + +@interface MoshSession : Session + +- (id)initWithInputStream:(FILE *)tIn outputStream:(FILE *)tOut; +- (int)main:(int)argc argv:(char **)argv; +- (void)executeWithArgs:(NSString *)args; +- (void)sigwinch; +- (void)close; + +@end diff --git a/Sessions/MoshSession.m b/Sessions/MoshSession.m new file mode 100644 index 000000000..59b2e6642 --- /dev/null +++ b/Sessions/MoshSession.m @@ -0,0 +1,286 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include + +#include "MoshiOSController.h" + +#import "MoshSession.h" +#import "SSHSession.h" + +static const char *usage_format = + "Usage: mosh [options] [user@]host [--] [command]" + "\r\n" + " --server=PATH mosh server on remote machine\r\n" + " (default: mosh-server)\r\n" + " --predict=adaptive local echo for slower links [default]\r\n" + "-a --predict=always use local echo even on fast links\r\n" + "-n --predict=never never use local echo\r\n" + "\r\n" + "-p NUM --port=NUM server-side UDP port\r\n" + " --ssh=COMMAND ssh command to run when setting up session\r\n" + " (example: \"ssh -p 2222\")\r\n" + " (default: \"ssh\")\r\n" + "\r\n" + " --verbose verbose mode\r\n" + " --help this message\r\n" + "\r\n"; + +@interface MoshParams : NSObject + +@property NSString *ip; +@property NSString *port; +@property NSString *key; + +@end + +@implementation MoshParams +@end + +@implementation MoshSession { + MoshParams *_moshParams; + int _debug; +} + +- (int)main:(int)argc argv:(char **)argv +{ + NSString *server; + NSString *predict_mode, *port_request, *ssh; + int help = 0; + NSString *colors; + + struct option long_options[] = + { + {"server", required_argument, 0, 's'}, + {"predict", required_argument, 0, 'r'}, + {"port", required_argument, 0, 'p'}, + {"ssh", required_argument, 0, 'S'}, + {"verbose", no_argument, &_debug, 1}, + {"help", no_argument, &help, 1}, + {0, 0, 0, 0}}; + + optind = 0; + + while (1) { + int option_index = 0; + int c = getopt_long(argc, argv, "anS:s:r:p:", long_options, &option_index); + if (c == -1) { + break; + } + + if (c == 0) { + // Already parsed param + continue; + } + + switch (c) { + case 's': + server = [NSString stringWithFormat:@"%s", optarg]; + break; + case 'r': + predict_mode = [NSString stringWithFormat:@"%s", optarg]; + break; + case 'p': + port_request = [NSString stringWithFormat:@"%s", optarg]; + break; + case 'S': + ssh = [NSString stringWithFormat:@"%s", optarg]; + break; + case 'a': + predict_mode = @"always"; + break; + case 'n': + predict_mode = @"never"; + break; + default: + return [self dieMsg:@(usage_format)]; + } + } + + if (argc - optind < 1) { + return [self dieMsg:@(usage_format)]; + } + + if (help) { + return [self dieMsg:@(usage_format)]; + } + + // Validate prediction mode + if (!predict_mode) { + predict_mode = @"adaptive"; + } + if ([@[ @"always", @"adaptive", @"never" ] indexOfObject:predict_mode] == NSNotFound) { + return [self dieMsg:@"Unknown prediction mode. Use one of: always, adaptive, never"]; + } + + NSString *userhost = [NSString stringWithFormat:@"%s", argv[optind++]]; + + char **remote_command = &argv[optind]; + NSMutableArray *remoteChunks = [[NSMutableArray alloc] init]; + for (int i = 0; i < argc - optind; i++) { + [remoteChunks addObject:[NSString stringWithFormat:@"%s", remote_command[i]]]; + } + + NSString *moshServerCmd = [self getMoshServerStringCmd:server port:port_request withColors:colors run:[remoteChunks componentsJoinedByString:@" "]]; + [self debugMsg:moshServerCmd]; + + NSError *error; + [self setConnParamsWithSsh:ssh userHost:userhost moshCommand:moshServerCmd error:&error]; + if (error) { + return [self dieMsg:error.localizedDescription]; + } + + NSString *locales_path = [[NSBundle mainBundle] pathForResource:@"locales" ofType:@"bundle"]; + setenv("PATH_LOCALE", [locales_path cStringUsingEncoding:1], 1); + + mosh_main(_stream.in, _stream.out, _stream.sz, [_moshParams.ip UTF8String], [_moshParams.port UTF8String], [_moshParams.key UTF8String], [predict_mode UTF8String]); + + fprintf(_stream.out, "\r\nMosh session finished!\r\n"); + fprintf(_stream.out, "\r\n"); + + return 0; +} + +- (NSString *)getMoshServerStringCmd:(NSString *)server port:(NSString *)port withColors:(NSString *)colors run:(NSString *)command +{ + server = server ? server : @"mosh-server"; + colors = colors ? colors : @"256"; + + // Prepare ssh command + NSMutableArray *moshServerArgs = [NSMutableArray arrayWithObjects:server, @"new", @"-s", @"-c", colors, @"-l LC_ALL=en_US.UTF-8", @"--", nil]; + if (port) { + [moshServerArgs addObject:@"-p"]; + [moshServerArgs addObject:port]; + } + + if (command) { + [moshServerArgs addObject:command]; + } + + return [NSString stringWithFormat:@"%@", [moshServerArgs componentsJoinedByString:@" "]]; +} + +- (void)setConnParamsWithSsh:(NSString *)ssh userHost:(NSString *)userHost moshCommand:(NSString *)command error:(NSError **)error +{ + ssh = ssh ? ssh : @"ssh"; + + NSMutableArray *sshArgs = [NSMutableArray arrayWithObjects:ssh, @"-t", userHost, @"--", command, nil]; + if (_debug) { + [sshArgs insertObject:@"-v" atIndex:1]; + } + + NSString *sshCmd = [sshArgs componentsJoinedByString:@" "]; + [self debugMsg:sshCmd]; + + SSHSession *sshSession = [[SSHSession alloc] initWithStream:_stream]; + + int poutput[2]; + pipe(poutput); + FILE *term_w = fdopen(poutput[1], "w"); + setvbuf(term_w, NULL, _IONBF, 0); + FILE *term_r = fdopen(poutput[0], "r"); + + fclose(sshSession.stream.out); + sshSession.stream.out = term_w; + + [sshSession executeWithArgs:sshCmd]; + + // Capture ssh output and process parameters for Mosh connection + char *buf = NULL; + size_t buf_sz = 0; + NSString *line; + + NSString *ipPattern = @"Connected to (\\S*)$"; + NSRegularExpression *ipFormat = [NSRegularExpression regularExpressionWithPattern:ipPattern options:0 error:nil]; + + NSString *connPattern = @"MOSH CONNECT (\\d+) (\\S*)$"; + NSRegularExpression *connFormat = [NSRegularExpression regularExpressionWithPattern:connPattern options:0 error:nil]; + + NSTextCheckingResult *match; + + ssize_t n = 0; + + _moshParams = [[MoshParams alloc] init]; + + while ((n = getline(&buf, &buf_sz, term_r)) >= 0) { + + line = [NSString stringWithFormat:@"%.*s", (int)n, buf]; + if ((match = [ipFormat firstMatchInString:line options:0 range:NSMakeRange(0, line.length)])) { + NSRange matchRange = [match rangeAtIndex:1]; + _moshParams.ip = [line substringWithRange:matchRange]; + } else if ((match = [connFormat firstMatchInString:line options:0 range:NSMakeRange(0, line.length)])) { + NSRange matchRange = [match rangeAtIndex:1]; + _moshParams.port = [line substringWithRange:matchRange]; + matchRange = [match rangeAtIndex:2]; + _moshParams.key = [line substringWithRange:matchRange]; + break; + } else { + fwrite(buf, 1, n, _stream.out); + } + } + + if (!_moshParams.ip) { + *error = [NSError errorWithDomain:@"blink.mosh.ssh" code:0 userInfo:@{ NSLocalizedDescriptionKey : @"Did not find remote IP address" }]; + return; + } + + if (_moshParams.key == nil || _moshParams.port == nil) { + *error = [NSError errorWithDomain:@"blink.mosh.ssh" code:0 userInfo:@{ NSLocalizedDescriptionKey : @"Did not find remote IP address" }]; + return; + } +} + +- (void)debugMsg:(NSString *)msg +{ + if (_debug) { + fprintf(_stream.out, "MoshClient:DEBUG:%s\r\n", [msg UTF8String]); + } +} + +- (int)dieMsg:(NSString *)msg +{ + fprintf(_stream.out, "%s\r\n", [msg UTF8String]); + return -1; +} + +- (void)sigwinch +{ + pthread_kill(_tid, SIGWINCH); +} + +- (void)kill +{ + pthread_kill(_tid, SIGTERM); +} + +@end diff --git a/Sessions/PKCard.h b/Sessions/PKCard.h new file mode 100644 index 000000000..f0b502f09 --- /dev/null +++ b/Sessions/PKCard.h @@ -0,0 +1,66 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + + +@interface SshRsa : NSObject + +- (SshRsa *)initWithLength:(int)bits; +- (SshRsa *)initFromPrivateKey:(NSString *)privateKey passphrase:(NSString *)passphrase; +- (NSString *)privateKeyWithPassphrase:(NSString *)passphrase; +- (NSString *)publicKey; + +@end + +@interface PKCard : NSObject + +@property NSString *ID; +@property (readonly) NSString *privateKey; +@property (readonly) NSString *publicKey; + ++ (void)initialize; ++ (instancetype)withID:(NSString *)ID; ++ (BOOL)saveIDS; ++ (id)saveCard:(NSString *)ID privateKey:(NSString *)privateKey publicKey:(NSString *)publicKey; ++ (NSMutableArray *)all; ++ (NSInteger)count; + +- (NSString *)publicKey; +- (NSString *)privateKey; +- (BOOL)isEncrypted; + +@end + +// Responsible of the lifecycle of the IDCards within the system. +// Offers a directory to the rest, in the same way that you wouldn't offer everything in a file interface. +// Class methods can give us this, then we can connect the TableViewController for rendering, extending them with +// a Decorator (or in this case maybe a custom View that represents the Cell) diff --git a/Sessions/PKCard.m b/Sessions/PKCard.m new file mode 100644 index 000000000..511a005b9 --- /dev/null +++ b/Sessions/PKCard.m @@ -0,0 +1,367 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include +#include + +#import "PKCard.h" +#import "UICKeyChainStore/UICKeyChainStore.h" + + +// typedef enum IDCardType : NSUInteger { +// RSA2048, +// RSA4096 +// }IDCardType; +static unsigned char pSshHeader[11] = {0x00, 0x00, 0x00, 0x07, 0x73, 0x73, 0x68, 0x2D, 0x72, 0x73, 0x61}; +NSMutableArray *Identities; + +static NSURL *DocumentsDirectory = nil; +static NSURL *KeysURL = nil; +static UICKeyChainStore *Keychain = nil; + +static int SshEncodeBuffer(unsigned char *pEncoding, int bufferLen, unsigned char *pBuffer) +{ + int adjustedLen = bufferLen, index; + if (*pBuffer & 0x80) { + adjustedLen++; + pEncoding[4] = 0; + index = 5; + } else { + index = 4; + } + pEncoding[0] = (unsigned char)(adjustedLen >> 24); + pEncoding[1] = (unsigned char)(adjustedLen >> 16); + pEncoding[2] = (unsigned char)(adjustedLen >> 8); + pEncoding[3] = (unsigned char)(adjustedLen); + memcpy(&pEncoding[index], pBuffer, bufferLen); + return index + bufferLen; +} + +// It is responsible to interface with OpenSSL library. +// It offers secure tokens. +@implementation SshRsa { + RSA *_rsa; + EVP_PKEY *_pkey; +} + +- (SshRsa *)initFromPrivateKey:(NSString *)privateKey passphrase:(NSString *)passphrase +{ + self = [super init]; + const char *ckey = [privateKey UTF8String]; + + // Create a read-only memory BIO + BIO *fpem = BIO_new_mem_buf((void *)ckey, -1); + const char *pp = (passphrase) ? [passphrase UTF8String] : NULL; + _rsa = RSA_new(); + _pkey = EVP_PKEY_new(); + + OpenSSL_add_all_algorithms(); + _rsa = PEM_read_bio_RSAPrivateKey(fpem, NULL, NULL, (void *)pp); + BIO_free(fpem); + + if (!_rsa && !RSA_check_key(_rsa)) { + return nil; + } + + // Convert RSA to PKEY format + // Initialise with both tied, we only have to release the rsa on dealloc + if (!EVP_PKEY_assign_RSA(_pkey, _rsa)) { + return nil; + } + + return self; +} + +- (SshRsa *)initWithLength:(int)bits +{ + self = [super init]; + _rsa = RSA_new(); + _pkey = EVP_PKEY_new(); + BIGNUM *bn = BN_new(); + + // Exponent + BN_set_word(bn, RSA_F4); + + // Generate key + if (!RSA_generate_key_ex(_rsa, bits, bn, NULL)) { + BN_free(bn); + return nil; + } + + BN_free(bn); + // Convert RSA to PKEY format + // Initialise with both tied, we only have to release the rsa on dealloc + if (!EVP_PKEY_assign_RSA(_pkey, _rsa)) { + return nil; + } + + return self; +} + +// Returns a PKCS#8 formatted key, with AEC encryption. +- (NSString *)privateKeyWithPassphrase:(NSString *)passphrase +{ + BIO *fpem = BIO_new(BIO_s_mem()); + const char *pp = NULL; + long pp_sz = 0; + const EVP_CIPHER *cipher = NULL; + + if (passphrase.length) { + pp = [passphrase UTF8String]; + pp_sz = strlen(pp); + cipher = EVP_aes_256_cbc(); + } + + if (PEM_write_bio_PKCS8PrivateKey(fpem, _pkey, + cipher, + (char *)pp, // NULL for no passphrase + (int)pp_sz, NULL, NULL) != 1) { + BIO_free(fpem); + return nil; + } + + char *pkey; + long sz = BIO_get_mem_data(fpem, &pkey); + NSString *key = [[NSString alloc] initWithBytes:pkey length:sz encoding:NSUTF8StringEncoding]; + BIO_free(fpem); + + return key; +} + +// Generate OpenSSH public key +- (NSString *)publicKey +{ + int nLen = 0, eLen = 0; + int index = 0; + unsigned char *pEncoding = NULL; + int encodingLength = 0; + unsigned char *nBytes = NULL, *eBytes = NULL; + BIO *b64, *fpub; + + // reading the modulus + nLen = BN_num_bytes(_rsa->n); + nBytes = (unsigned char *)malloc(nLen); + BN_bn2bin(_rsa->n, nBytes); + + // reading the public exponent + eLen = BN_num_bytes(_rsa->e); + eBytes = (unsigned char *)malloc(eLen); + BN_bn2bin(_rsa->e, eBytes); + + encodingLength = 11 + 4 + eLen + 4 + nLen; + // correct depending on the MSB of e and N + if (eBytes[0] & 0x80) { + encodingLength++; + } + if (nBytes[0] & 0x80) { + encodingLength++; + } + + pEncoding = (unsigned char *)malloc(encodingLength); + memcpy(pEncoding, pSshHeader, 11); + + // Encoding exponent and modulus + index = SshEncodeBuffer(&pEncoding[11], eLen, eBytes); + index = SshEncodeBuffer(&pEncoding[11 + index], nLen, nBytes); + + free(nBytes); + free(eBytes); + + b64 = BIO_new(BIO_f_base64()); + fpub = BIO_new(BIO_s_mem()); + BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL); + BIO_write(fpub, "ssh-rsa ", 8); + BIO_flush(fpub); + + // Filter + fpub = BIO_push(b64, fpub); + BIO_write(fpub, pEncoding, encodingLength); + BIO_write(fpub, '\0', 1); + BIO_flush(fpub); + fpub = BIO_pop(b64); + + BIO_free(b64); + // Read and return public key + char *pkey; + long sz = BIO_get_mem_data(fpub, &pkey); + NSString *key = [[NSString alloc] initWithBytes:pkey length:sz encoding:NSUTF8StringEncoding]; + + // Free the BIO key memory + BIO_free(fpub); + + return key; +} + +- (void)dealloc +{ + RSA_free(_rsa); +} +@end + +@implementation PKCard { + NSString *_privateKeyRef; + NSString *_publicKey; +} + ++ (void)initialize +{ + Keychain = [UICKeyChainStore keyChainStoreWithService:@"sh.blink.pkcard"]; + [PKCard loadIDS]; +} + ++ (instancetype)withID:(NSString *)ID +{ + // Find the ID and return it. + for (PKCard *i in Identities) { + if ([i->_ID isEqualToString:ID]) { + return i; + } + } + + return nil; +} + ++ (NSMutableArray *)all +{ + return Identities; +} + ++ (BOOL)saveIDS +{ + // Save IDs to file + return [NSKeyedArchiver archiveRootObject:Identities toFile:KeysURL.path]; +} + ++ (void)loadIDS +{ + if (DocumentsDirectory == nil) { + //Identities = [[NSMutableArray alloc] init]; + DocumentsDirectory = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] firstObject]; + KeysURL = [DocumentsDirectory URLByAppendingPathComponent:@"keys"]; + } + + // Load IDs from file + if ((Identities = [NSKeyedUnarchiver unarchiveObjectWithFile:KeysURL.path]) == nil) { + // Initialize the structure if it doesn't exist + Identities = [[NSMutableArray alloc] init]; + } +} + ++ (id)saveCard:(NSString *)ID privateKey:(NSString *)privateKey publicKey:(NSString *)publicKey +{ + // Save privateKey to storage + // If the card already exists, then it is replaced + NSString *privateKeyRef = [ID stringByAppendingString:@".pem"]; + if (![Keychain setString:privateKey forKey:privateKeyRef]) { + return nil; + } + + PKCard *card = [PKCard withID:ID]; + if (!card) { + card = [[PKCard alloc] initWithID:ID privateKeyRef:privateKeyRef publicKey:publicKey]; + [Identities addObject:card]; + } else { + card->_privateKeyRef = privateKeyRef; + card->_publicKey = publicKey; + } + + if (![PKCard saveIDS]) { + // This should never fail, but it is kept for testing purposes. + return nil; + } + + return card; +} + ++ (NSInteger)count +{ + return [Identities count]; +} + +- (id)initWithCoder:(NSCoder *)coder +{ + _ID = [coder decodeObjectForKey:@"ID"]; + _privateKeyRef = [coder decodeObjectForKey:@"privateKeyRef"]; + _publicKey = [coder decodeObjectForKey:@"publicKey"]; + + return [self initWithID:_ID privateKeyRef:_privateKeyRef publicKey:_publicKey]; +} + +- (void)encodeWithCoder:(NSCoder *)coder +{ + [coder encodeObject:_ID forKey:@"ID"]; + [coder encodeObject:_privateKeyRef forKey:@"privateKeyRef"]; + [coder encodeObject:_publicKey forKey:@"publicKey"]; +} + +- (id)initWithID:(NSString *)ID privateKeyRef:(NSString *)privateKeyRef publicKey:(NSString *)publicKey +{ + self = [self init]; + if (self == nil) + return nil; + + _ID = ID; + _privateKeyRef = privateKeyRef; + _publicKey = publicKey; + + return self; +} + +- (NSString *)publicKey +{ + return _publicKey; +} + +- (NSString *)privateKey +{ + return [Keychain stringForKey:_privateKeyRef]; +} + +- (BOOL)isEncrypted +{ + NSString *priv = [self privateKey]; + if ([priv rangeOfString:@"^Proc-Type: 4,ENCRYPTED\n" + options:NSRegularExpressionSearch] + .location != NSNotFound) + return YES; + else if ([priv rangeOfString:@"^-----BEGIN ENCRYPTED PRIVATE KEY-----\n" + options:NSRegularExpressionSearch] + .location != NSNotFound) + return YES; + else + return NO; +} + +@end diff --git a/Sessions/SSHCopyIDSession.h b/Sessions/SSHCopyIDSession.h new file mode 100644 index 000000000..aa6a1fe6c --- /dev/null +++ b/Sessions/SSHCopyIDSession.h @@ -0,0 +1,41 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +#import "Session.h" + + +@interface SSHCopyIDSession : Session + +- (int)main:(int)argc argv:(char **)argv; + +@end diff --git a/Sessions/SSHCopyIDSession.m b/Sessions/SSHCopyIDSession.m new file mode 100644 index 000000000..587dea15d --- /dev/null +++ b/Sessions/SSHCopyIDSession.m @@ -0,0 +1,81 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import "SSHCopyIDSession.h" +#import "PKCard.h" +#import "SSHSession.h" + +static const char *copy_command = + "umask 077; test -d ~/.ssh || mkdir ~/.ssh; grep -f ~/.ssh/authorized_keys > /dev/null 2>&1; ! [ -a ~/.ssh/authorized_keys ] || [ $? -ne 0 ] && cat >> ~/.ssh/authorized_keys && (test -x /sbin/restorecon && /sbin/restorecon ~/.ssh ~/.ssh/authorized_keys >/dev/null 2>&1 || true)"; +static const char *usage_format = + "Usage: ssh-copy-id identity_file [user@]host"; + +@implementation SSHCopyIDSession + +- (int)main:(int)argc argv:(char **)argv +{ + if (argc != 3) { + return [self dieMsg:@(usage_format)]; + } + + NSString *keyName = [NSString stringWithFormat:@"%s", argv[1]]; + PKCard *pkcard = [PKCard withID:keyName]; + + if (!pkcard) { + return [self dieMsg:@"ERROR: No identities found."]; + } + const char *public_key = [[pkcard publicKey] UTF8String]; + + // Pipe public key + int pinput[2]; + pipe(pinput); + FILE *inputr = fdopen(pinput[0], "r"); + FILE *oldin = _stream.in; + _stream.in = inputr; + + write(pinput[1], public_key, strlen(public_key)); + write(pinput[1], "\n", 1); + close(pinput[1]); + SSHSession *ssh = [[SSHSession alloc] initWithStream:_stream]; + NSString *ssh_command = [NSString stringWithFormat:@"ssh %s -- %s", argv[2], copy_command]; + [ssh executeAttachedWithArgs:ssh_command]; + _stream.in = oldin; + + return 0; +} + +- (int)dieMsg:(NSString *)msg +{ + fprintf(_stream.out, "%s\r\n", [msg UTF8String]); + return -1; +} + +@end diff --git a/Sessions/SSHSession.h b/Sessions/SSHSession.h new file mode 100644 index 000000000..3ad06d807 --- /dev/null +++ b/Sessions/SSHSession.h @@ -0,0 +1,45 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +#import "Session.h" + + +@interface SSHSession : Session + +@property (nonatomic) BOOL debug; + +- (id)initWithInputStream:(FILE *)tIn outputStream:(FILE *)tOut; +- (int)main:(int)argc argv:(char **)argv; +- (void)close; + +@end diff --git a/Sessions/SSHSession.m b/Sessions/SSHSession.m new file mode 100644 index 000000000..89d1319a5 --- /dev/null +++ b/Sessions/SSHSession.m @@ -0,0 +1,950 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#import "PKCard.h" +#import "SSHSession.h" + +#define REQUEST_TTY_AUTO 0 +#define REQUEST_TTY_NO 1 +#define REQUEST_TTY_YES 2 +#define REQUEST_TTY_FORCE 3 + +#define PORT 22 +#define TERM "vt100" + +static const char *usage_format = + "usage: ssh [options] [user@]hostname [command]\r\n" + "[-i identity_file] [-p port] [-t request_tty] [-v verbose]\r\n" + "\r\n"; + +typedef struct { + int address_family; + int connection_timeout; + int port; + const char *hostname; + const char *user; + int request_tty; + const char *identity_file; +} Options; + + +@interface SSHSession () +@end + +@implementation SSHSession { + Options _options; + //SSHWrapper _ssh; + int _sock; + LIBSSH2_SESSION *_session; + LIBSSH2_CHANNEL *_channel; + NSMutableArray *_identities; + const char *_command; + int _tty_flag; +} + +static int waitsocket(int socket_fd, LIBSSH2_SESSION *session) +{ + struct timeval timeout; + int rc; + fd_set fd; + fd_set *writefd = NULL; + fd_set *readfd = NULL; + int dir; + + timeout.tv_sec = 10; + timeout.tv_usec = 0; + + FD_ZERO(&fd); + + FD_SET(socket_fd, &fd); + + /* now make sure we wait in the correct direction */ + dir = libssh2_session_block_directions(session); + + if (dir & LIBSSH2_SESSION_BLOCK_INBOUND) + readfd = &fd; + + if (dir & LIBSSH2_SESSION_BLOCK_OUTBOUND) + writefd = &fd; + + rc = select(socket_fd + 1, readfd, writefd, NULL, &timeout); + + return rc; +} + +static void kbd_callback(const char *name, int name_len, + const char *instruction, int instruction_len, + int num_prompts, + const LIBSSH2_USERAUTH_KBDINT_PROMPT *prompts, + LIBSSH2_USERAUTH_KBDINT_RESPONSE *responses, + void **abstract) +{ + SSHSession *s = (__bridge SSHSession *)(*abstract); + // We want to write straight to the control + // ssh does the same and writes straight to /dev/tty or stderr + FILE *termout = s->_stream.control.termout; + if (name_len > 0) { + fwrite(name, 1, name_len, termout); + fprintf(termout, "\r\n"); + } + if (instruction_len > 0) { + fwrite(instruction, 1, instruction_len, termout); + fprintf(termout, "\r\n"); + } + + for (int i = 0; i < num_prompts; i++) { + fwrite(prompts[i].text, 1, prompts[i].length, termout); + responses[i].length = (int)[s promptUser:&responses[i].text]; + fprintf(termout, "\r\n"); + } +} /* kbd_callback */ + +- (ssize_t)promptUser:(char **)resp +{ + //char *line=NULL; + size_t size = 0; + ssize_t sz = 0; + + FILE *termin = _stream.control.termin; + if ((sz = getdelim(resp, &size, '\r', termin)) == -1) { + return -1; + } else { + if ((*resp)[sz - 1] == '\r') { + (*resp)[--sz] = '\0'; + } + return sz; + } +} + +- (int)main:(int)argc argv:(char **)argv +{ + // Options + // port -p + // verbose --verbose + // command (Obtain data at the end) + // tty -t + // key -i identity file + // forced password + optind = 1; + + while (1) { + int c = getopt_long(argc, argv, "p:i:tv", NULL, NULL); + if (c == -1) { + break; + } + char *ep; + switch (c) { + case 'p': + _options.port = (unsigned int)strtol(optarg, &ep, 10); + if (optarg == ep || *ep != '\0' || _options.port > 6553) { + return [self dieMsg:@"Wrong port value provided."]; + } + break; + case 'v': + _debug = 1; + break; + case 'i': + _options.identity_file = optarg; + break; + case 't': + _options.request_tty = REQUEST_TTY_FORCE; + break; + default: + optind = 0; + return [self dieMsg:@(usage_format)]; + } + } + + if (argc - optind < 1) { + return [self dieMsg:@(usage_format)]; + } + + NSString *userhost = [NSString stringWithFormat:@"%s", argv[optind++]]; + char **command = &argv[optind]; + int commands = argc - optind; + + NSArray *chunks = [userhost componentsSeparatedByString:@"@"]; + if ([chunks count] != 2) { + optind = 0; + return [self dieMsg:@"Could not parse user@host info"]; + } + + _options.user = [chunks[0] UTF8String]; + _options.hostname = [chunks[1] UTF8String]; + + NSMutableArray *command_args = [[NSMutableArray alloc] init]; + + if (commands) { + for (int i = 0; i < commands; i++) { + [command_args addObject:[NSString stringWithFormat:@"%s", command[i]]]; + } + _command = [[command_args componentsJoinedByString:@" "] UTF8String]; + } else { + _options.request_tty = REQUEST_TTY_YES; + } + + // Request tty can have different options, but depends on the process to choose whether to use it or not. + // I want to maintain the REQUEST_TTY_XXX because it will give us flexibility with the command in the future. + if ((_options.request_tty == REQUEST_TTY_FORCE) || (_options.request_tty == REQUEST_TTY_YES)) { + _tty_flag = 1; + } else { + _tty_flag = 0; + } + + _options.connection_timeout = 10; + + struct addrinfo *addrs; + NSError *e = nil; + + // Obtain a list of all possible hosts for the name given. + if ((addrs = [self resolve_host:_options.hostname port:_options.port]) == NULL) { + return [self dieMsg:@"Could not resolve host address."]; + } + + // Connect to any of the hosts provided and return the successful one. + struct sockaddr_storage hostaddr; + [self ssh_connect:_options.hostname addrs:addrs succ_addr:&hostaddr error:&e]; + if (e != nil) { + return [self dieMsg:[NSString stringWithFormat:@"Could not connect to host: %@", [e localizedDescription]]]; + } + + // Login to the host through one of the possible identities + [self load_identity_files]; + [self ssh_login:_identities to:(struct sockaddr *)&hostaddr port:_options.port user:_options.user timeout:_options.connection_timeout error:&e]; + + if (e != nil) { + return [self dieMsg:[e localizedDescription]]; + } + + int exit_code = 0; + exit_code = [self ssh_session_start]; + [self debugMsg:[NSString stringWithFormat:@"session finished with code %d", exit_code]]; + + return exit_code; +} + +- (int)dieMsg:(NSString *)msg +{ + fprintf(_stream.out, "%s\r\n", [msg UTF8String]); + return -1; +} + +- (void)errMsg:(NSString *)msg +{ + fprintf(_stream.err, "%s\r\n", [msg UTF8String]); +} + +- (void)debugMsg:(NSString *)msg +{ + if (_debug) { + fprintf(_stream.out, "SSHSession:DEBUG:%s\r\n", [msg UTF8String]); + } +} + + +- (void)load_identity_files +{ + // Obtain valid auths that will be tried for the connection + _identities = [[NSMutableArray alloc] init]; + PKCard *pk; + + if (_options.identity_file) { + if ((pk = [PKCard withID:[NSString stringWithUTF8String:_options.identity_file]]) != nil) { + [_identities addObject:pk]; + } + } + + if ((pk = [PKCard withID:@"id_rsa"]) != nil) { + [_identities addObject:pk]; + } +} + +// Hosts and no hosts tested +- (struct addrinfo *)resolve_host:(const char *)name port:(int)port +{ + char strport[NI_MAXSERV]; + struct addrinfo hints, *res; + int err; + + if (port <= 0) { + port = PORT; + } + + snprintf(strport, sizeof strport, "%d", port); + memset(&hints, 0, sizeof(hints)); + // IPv4 / IPv6 + hints.ai_family = _options.address_family == -1 ? AF_UNSPEC : _options.address_family; + hints.ai_socktype = SOCK_STREAM; + + if ((err = getaddrinfo(name, strport, &hints, &res)) != 0) { + return NULL; + } + + return res; +} + +- (void)ssh_connect:(const char *)host addrs:(struct addrinfo *)aitop succ_addr:(struct sockaddr_storage *)hostaddr error:(NSError **)error +{ + struct addrinfo *ai; + char ntop[NI_MAXHOST], strport[NI_MAXSERV]; + + for (ai = aitop; ai; ai = ai->ai_next) { + if (ai->ai_family != AF_INET) { + continue; + } + + if (getnameinfo(ai->ai_addr, ai->ai_addrlen, + ntop, sizeof(ntop), strport, + sizeof(strport), NI_NUMERICHOST | NI_NUMERICSERV) != 0) { + [self debugMsg:@"ssh_connect: getnameinfo failed"]; + continue; + } + + [self debugMsg:[NSString stringWithFormat:@"Connecting to %.200s [%.100s] port %s.", host, ntop, strport]]; + _sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); + if (_sock < 0) { + [self debugMsg:[NSString stringWithFormat:@"%s", strerror(errno)]]; + if (!ai->ai_next) { + *error = [NSError errorWithDomain:@"blk.ssh.libssh2" code:-1 userInfo:@{ NSLocalizedDescriptionKey : [NSString stringWithFormat:@"ssh: connect to host %s port %s: %s", host, strport, strerror(errno)] }]; + return; + } + + continue; + } + + if ([self timeout_connect:_sock + serv_addr:ai->ai_addr + addr_len:ai->ai_addrlen + timeout:&_options.connection_timeout] >= 0) { + // Successful connection. Save host address + memcpy(hostaddr, ai->ai_addr, ai->ai_addrlen); + fprintf(_stream.out, "Connected to %s\r\n", ntop); + break; + } else { + [self debugMsg:[NSString stringWithFormat:@"connect to host %s port %s: %s", ntop, strport, strerror(errno)]]; + _sock = -1; + } + } + + if (_sock < 0) { + *error = [NSError errorWithDomain:@"blk.ssh.libssh2" code:-1 userInfo:@{ NSLocalizedDescriptionKey : [NSString stringWithFormat:@"ssh: connect to host %s port %s: %s", host, strport, strerror(errno)] }]; + [self debugMsg:@"Could not establish a successful connection."]; + return; + } + + if (0 != [self ssh_set_session]) { + *error = [NSError errorWithDomain:@"blk.ssh.libssh2" code:-1 userInfo:@{ NSLocalizedDescriptionKey : @"Error establishing SSH session." }]; + return; + } + + if (![self verify_host:ntop]) { + *error = [NSError errorWithDomain:@"blk.ssh.libssh2" code:-1 userInfo:@{ NSLocalizedDescriptionKey : @"Host key verification failed." }]; + } + + return; +} + +- (int)ssh_set_session +{ + int rc; + + _session = libssh2_session_init(); + if (!_session) { + [self debugMsg:@"Session init failed"]; + // *error = [NSError errorWithDomain:@"bnk.sessions.sshwrapper" code:401 userInfo:@{NSLocalizedDescriptionKey : @"Create session failed"}]; + return -1; + } + //libssh2_trace(_session, LIBSSH2_TRACE_SOCKET); + + libssh2_session_set_blocking(_session, 0); + + // Set timeout for libssh2 controlled functions + libssh2_session_set_timeout(_session, _options.connection_timeout); + + /* ... start it up. This will trade welcome banners, exchange keys, + * and setup crypto, compression, and MAC layers + */ + char *errmsg; + while ((rc = libssh2_session_handshake(_session, _sock)) == + LIBSSH2_ERROR_EAGAIN) + ; + if (rc) { + libssh2_session_last_error(_session, &errmsg, NULL, 0); + [self debugMsg:[NSString stringWithFormat:@"%s", errmsg]]; + return -1; + } + + // Set object as handler + void **handler = libssh2_session_abstract(_session); + *handler = CFBridgingRetain(self); + + return 0; +} + +- (void)ssh_login:(NSArray *)ids to:(struct sockaddr *)addr port:(int)port user:(const char *)user timeout:(int)timeout error:(NSError **)error +{ + char *userauthlist = NULL; + int auth_type; + + // Set supported auth_type from server + do { + userauthlist = libssh2_userauth_list(_session, user, (int)strlen(user)); + + if (!userauthlist) { + if (libssh2_session_last_errno(_session) != LIBSSH2_ERROR_EAGAIN) { + *error = [NSError errorWithDomain:@"blk.ssh.libssh2" code:-1 userInfo:@{ NSLocalizedDescriptionKey : @"No userauth list" }]; + return; + } else { + waitsocket(_sock, _session); /* now we wait */ + } + } + } while (!userauthlist); + + [self debugMsg:[NSString stringWithFormat:@"Authenticating as '%s'.", user]]; + + if (strstr(userauthlist, "password") != NULL) { + auth_type |= 1; + } + if (strstr(userauthlist, "keyboard-interactive") != NULL) { + auth_type |= 2; + } + if (strstr(userauthlist, "publickey") != NULL) { + auth_type |= 4; + } + + int succ = 0; + //[self promptPassword:"pass" length:4]; + + if (auth_type & 4) { + succ = [self ssh_login_publickey:user]; + } + if (!succ && (auth_type & 2)) { + succ = [self ssh_login_interactive:user]; + } + if (!succ && auth_type & 1) { + succ = [self ssh_login_password:user]; + } + + if (!succ) { + *error = [NSError errorWithDomain:@"blk.ssh.libssh2" code:-1 userInfo:@{ NSLocalizedDescriptionKey : [NSString stringWithFormat:@"Permission denied (%s).", userauthlist] }]; + return; + } + + return; +} + +- (int)ssh_login_password:(const char *)user +{ + char *password = nil; + int retries = 3; + char *errmsg; + + do { + int rc; + fprintf(_stream.control.termout, "%s@%s's password: ", user, _options.hostname); + [self promptUser:&password]; + fprintf(_stream.control.termout, "\r\n"); + + if (strlen(password) != 0) { + while ((rc = libssh2_userauth_password(_session, user, password)) == LIBSSH2_ERROR_EAGAIN) + ; + if (rc == 0) { + [self debugMsg:@"Authentication by password succeeded."]; + return 1; + } else if (rc != LIBSSH2_ERROR_PASSWORD_EXPIRED || rc != LIBSSH2_ERROR_AUTHENTICATION_FAILED) { + libssh2_session_last_error(_session, &errmsg, NULL, 0); + [self errMsg:[NSString stringWithFormat:@"Authentication by password failed: %s", errmsg]]; + return 0; + } + } + } while (--retries); + + [self debugMsg:@"Could not match user and password."]; + return 0; +} + +- (int)ssh_login_interactive:(const char *)user +{ + int rc; + + [self debugMsg:@"Attempting interactive authentication."]; + while ((rc = libssh2_userauth_keyboard_interactive(_session, user, &kbd_callback)) == LIBSSH2_ERROR_EAGAIN) + ; + + if (rc == 0) { + [self debugMsg:@"Authentication succeeded."]; + return 1; + } else { + [self debugMsg:@"Auth by password failed"]; + } + return 0; +} + +- (int)ssh_login_publickey:(const char *)user +{ + // Try all the identities until finding a successful one, and return + for (PKCard *pk in _identities) { + [self debugMsg:@"Attempting authentication with publickey."]; + int rc = 0; + const char *pub = [pk.publicKey UTF8String]; + const char *priv = [pk.privateKey UTF8String]; + char *passphrase = NULL; + + // Request passphrase from user + if ([pk isEncrypted]) { + fprintf(_stream.control.termout, "Enter your passphrase for key '%s':", [pk.ID UTF8String]); + [self promptUser:&passphrase]; + fprintf(_stream.control.termout, "\r\n"); + } + + while ((rc = libssh2_userauth_publickey_frommemory(_session, user, strlen(user), + pub, strlen(pub), // or sizeof_publickey methods + priv, strlen(priv), + passphrase)) == LIBSSH2_ERROR_EAGAIN) + ; + if (rc == 0) { + [self debugMsg:@"Authentication succeeded."]; + return 1; + } else { + [self debugMsg:@"Authentication failed"]; + } + } + // Login with publickey failed + return 0; +} + +- (int)timeout_connect:(int)fd serv_addr:(const struct sockaddr *)addr + addr_len:(socklen_t)len + timeout:(int *)timeoutp +{ + struct timeval tv; + fd_set fdset; + int res; + int valopt = 0; + socklen_t lon; + + if ([self set_nonblock:_sock] != 0) { + return -1; + } + + // Trying to initiate connection as nonblock + res = connect(_sock, addr, len); + if (res == 0) { + return [self unset_nonblock:_sock]; + } + if (errno != EINPROGRESS) { + return -1; + } + + do { + // Set timeout params + tv.tv_sec = *timeoutp; + tv.tv_usec = 0; + FD_ZERO(&fdset); + FD_SET(fd, &fdset); + // Try to select it to write + res = select(fd + 1, NULL, &fdset, NULL, &tv); + + if (res != -1 || errno != EINTR) { + //fprintf(stderr, "Error connecting %d - %s\n", errno, strerror(errno)); + break; + } + } while (1); + + switch (res) { + case 0: + // Timed out message + errno = ETIMEDOUT; + return -1; + case -1: + // Select failed + return -1; + case 1: + // Completed or failed. Socket selected for write + valopt = 0; + lon = sizeof(valopt); + + lon = sizeof(int); + if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &valopt, &lon) == -1) { + return -1; + } + if (valopt != 0) { + errno = valopt; + return -1; + } + return [self unset_nonblock:fd]; + + default: + return -1; + } +} + +- (int)set_nonblock:(int)fd +{ + int arg; + + if ((arg = fcntl(fd, F_GETFL, NULL)) < 0) { + [self debugMsg:[NSString stringWithFormat:@"Error fcntl(..., F_GETFL) (%s)", strerror(errno)]]; + return -1; + } + arg |= O_NONBLOCK; + if (fcntl(fd, F_SETFL, arg) < 0) { + [self debugMsg:[NSString stringWithFormat:@"Error fcntl(..., F_GETFL) (%s)", strerror(errno)]]; + return -1; + } + return 0; +} + +- (int)unset_nonblock:(int)fd +{ + int arg; + + if ((arg = fcntl(fd, F_GETFL, NULL)) < 0) { + [self debugMsg:[NSString stringWithFormat:@"Error fcntl(..., F_GETFL) (%s)", strerror(errno)]]; + return -1; + } + arg &= (~O_NONBLOCK); + if (fcntl(fd, F_SETFL, arg) < 0) { + [self debugMsg:[NSString stringWithFormat:@"Error fcntl(..., F_GETFL) (%s)", strerror(errno)]]; + return -1; + } + + return 0; +} + +- (int)ssh_session_start +{ + // This function is responsible to start all the session requirements, like port forwarding, shell, commands... + // using the ssh library that we want to. + + // It would be responsible to open the channels, and requesting the shells or commands as necessary + // We just have a couple of things, so maybe we can avoid it. + // [self ssh_session_setup]; + + // It would be responsible to read / write to the channels, shutting down the system and dropping the result of the operation. + int rc = 0; + char *errmsg; + + while ((_channel = libssh2_channel_open_session(_session)) == NULL && + libssh2_session_last_error(_session, NULL, NULL, 0) == LIBSSH2_ERROR_EAGAIN) { + waitsocket(_sock, _session); + } + if (_channel == NULL) { + libssh2_session_last_error(_session, &errmsg, NULL, 0); + [self debugMsg:[NSString stringWithFormat:@"ssh_session_start: error creating channel: %s", errmsg]]; + return -1; + } + + [self debugMsg:@"ssh_session_start: channel created"]; + + if (_tty_flag) { + while ((rc = libssh2_channel_request_pty(_channel, TERM)) == LIBSSH2_ERROR_EAGAIN) { + waitsocket(_sock, _session); + } + if (rc) { + libssh2_session_last_error(_session, &errmsg, NULL, 0); + [self debugMsg:[NSString stringWithFormat:@"ssh_session_start: error creating channel: %s", errmsg]]; + return -1; + } + [self debugMsg:@"ssh_session_start: pty requested"]; + } + + // Send command or start shell + if (_command != NULL) { + // else { + [self debugMsg:[NSString stringWithFormat:@"sending command: %s", _command]]; + while ((rc = libssh2_channel_exec(_channel, _command)) == LIBSSH2_ERROR_EAGAIN) { + waitsocket(_sock, _session); + } + if (rc != 0) { + libssh2_session_last_error(_session, &errmsg, NULL, 0); + [self debugMsg:[NSString stringWithFormat:@"ssh_session_start: error exec: %s", errmsg]]; + return -1; + } + [self debugMsg:@"exec request accepted"]; + } else { + [self debugMsg:@"requesting shell"]; + while ((rc = libssh2_channel_shell(_channel)) == LIBSSH2_ERROR_EAGAIN) { + waitsocket(_sock, _session); + } + if (rc) { + libssh2_session_last_error(_session, &errmsg, NULL, 0); + [self debugMsg:[NSString stringWithFormat:@"ssh_session_start: error shell : %s", errmsg]]; + return -1; + } + [self debugMsg:@"shell request accepted"]; + } + + return [self ssh_client_loop]; +} + +- (int)verify_host:(char *)addr +{ + LIBSSH2_KNOWNHOSTS *kh; + const char *key; + size_t key_len; + int key_type; + char *type_str; + char shabuf[42]; + + if (!(kh = libssh2_knownhost_init(_session))) { + return -1; + } + + NSURL *dd = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] firstObject]; + NSURL *khURL = [dd URLByAppendingPathComponent:@"known_hosts"]; + const char *khFilePath = [khURL.path UTF8String]; + + libssh2_knownhost_readfile(kh, khFilePath, LIBSSH2_KNOWNHOST_FILE_OPENSSH); + + key = libssh2_session_hostkey(_session, &key_len, &key_type); + int kh_key_type = (key_type == LIBSSH2_HOSTKEY_TYPE_RSA) ? LIBSSH2_KNOWNHOST_KEY_SSHRSA : LIBSSH2_KNOWNHOST_KEY_SSHDSS; + type_str = (key_type == LIBSSH2_HOSTKEY_TYPE_RSA) ? "RSA" : "DSS"; + + const char *fingerprint = libssh2_hostkey_hash(_session, LIBSSH2_HOSTKEY_HASH_SHA1); + for (int i = 0; i < 20; i++) { + snprintf(&shabuf[i * 2], 3, "%02x", (unsigned char)fingerprint[i]); + } + + int succ = 0; + if (key) { + struct libssh2_knownhost *knownHost; + int check = libssh2_knownhost_checkp(kh, _options.hostname, _options.port, key, key_len, + LIBSSH2_KNOWNHOST_TYPE_PLAIN | LIBSSH2_KNOWNHOST_KEYENC_RAW | kh_key_type, + &knownHost); + if (check == LIBSSH2_KNOWNHOST_CHECK_FAILURE) { + [self errMsg:@"Known host check failed"]; + } else if (check == LIBSSH2_KNOWNHOST_CHECK_NOTFOUND) { + [self errMsg:[NSString stringWithFormat:@"The authenticity of host %.200s (%s) can't be established.\r\n" + "%s key fingerprint is %s", + _options.hostname, addr, + type_str, shabuf]]; + + } else if (check == LIBSSH2_KNOWNHOST_CHECK_MISMATCH) { + [self errMsg:[NSString stringWithFormat:@"@@@@@@ REMOTE HOST IDENTIFICATION HAS CHANGED @@@@@@\r\n" + "%s host key for %.200s (%s) has changed.\r\n" + "This might be due to someone doing something nasty or just a change in the host.\r\n" + "Current %s key fingerprint is %s", + type_str, _options.hostname, addr, + type_str, shabuf]]; + } else if (check == LIBSSH2_KNOWNHOST_CHECK_MATCH) { + succ = 1; + } + } + + if (!succ && (succ = [self confirm:"Are you sure you want to continue connecting (yes/no)?"])) { + [self authorize_new_key:key length:key_len type:kh_key_type knownHosts:kh filePath:khFilePath]; + } + + libssh2_knownhost_free(kh); + + return succ; +} + +- (int)authorize_new_key:(const char *)key length:(ssize_t)key_len type:(int)key_type knownHosts:(LIBSSH2_KNOWNHOSTS *)kh filePath:(const char *)kh_path +{ + int rc; + + // Add key to the server + rc = libssh2_knownhost_addc(kh, _options.hostname, + NULL, // No hashed addr, no salt + key, key_len, + NULL, 0, // No comment + LIBSSH2_KNOWNHOST_TYPE_PLAIN | LIBSSH2_KNOWNHOST_KEYENC_RAW | key_type, //LIBSSH2_KNOWNHOST_KEY_SSHRSA, + NULL); // No pointer to the stored structure + if (rc < 0) { + char *errmsg; + libssh2_session_last_error(_session, &errmsg, NULL, 0); + [self errMsg:[NSString stringWithFormat:@"Error adding to the known host: %s", errmsg]]; + } + + rc = libssh2_knownhost_writefile(kh, kh_path, LIBSSH2_KNOWNHOST_FILE_OPENSSH); + if (rc < 0) { + char *errmsg; + libssh2_session_last_error(_session, &errmsg, NULL, 0); + [self errMsg:[NSString stringWithFormat:@"Error writing known host: %s", errmsg]]; + } else { + [self errMsg:[NSString stringWithFormat:@"Permanently added key for %s to list of known hosts.", _options.hostname]]; + } + return 1; +} + +- (int)confirm:(const char *)prompt +{ + const char *msg, *again = "Please type 'yes' or 'no': "; + char buffer[BUFSIZ] = ""; + int len = 0; + int ret = -1; + + for (msg = prompt;; msg = again) { + fprintf(_stream.err, "%s", msg); + len = 0; + do { + char c; + ssize_t n; + + if ((n = read(fileno(_stream.in), &c, 1)) <= 0) { + break; + } + + if (c == '\n' || c == '\r') { + fprintf(_stream.err, "\r\n"); + break; + } + fprintf(_stream.err, "%c", c); + buffer[len++] = c; + buffer[len] = '\0'; + } while (BUFSIZ - 1 - len > 0); + + if ((buffer[0] == '\0') || (buffer[0] == '\n') || strncasecmp(buffer, "no", 2) == 0) { + ret = 0; + } + if (strncasecmp(buffer, "yes", 3) == 0) { + ret = 1; + } + + if (ret != -1) { + return ret; + } + } + + return 0; +} + +- (int)ssh_client_loop +{ + + int numfds = 2; + struct pollfd pfds[numfds]; + ssize_t rc; + char inputbuf[BUFSIZ]; + char streambuf[BUFSIZ]; + + [self set_nonblock:_sock]; + + libssh2_channel_set_blocking(_channel, 0); + + if (_tty_flag) { + [self set_nonblock:fileno(_stream.in)]; + } + + memset(pfds, 0, sizeof(struct pollfd) * numfds); + + // Wait for stream->in or socket while not ready for reading + do { + pfds[0].fd = _sock; + pfds[0].events = POLLIN; + pfds[0].revents = 0; + + pfds[1].fd = fileno(_stream.in); + pfds[1].events = POLLIN; + pfds[1].revents = 0; + + if (libssh2_channel_eof(_channel)) { + break; + } + + rc = poll(pfds, numfds, -1); + if (-1 == rc) { + break; + } + + if (pfds[0].revents & POLLIN) { + // Read from socket + do { + rc = libssh2_channel_read(_channel, inputbuf, BUFSIZ); + fprintf(_stream.out, "%s", inputbuf); + memset(inputbuf, 0, BUFSIZ); + } while (LIBSSH2_ERROR_EAGAIN != rc && rc > 0); + do { + // TermStream stderr + rc = libssh2_channel_read_stderr(_channel, inputbuf, BUFSIZ); + fprintf(_stream.out, "%s", inputbuf); + memset(inputbuf, 0, BUFSIZ); + } while (LIBSSH2_ERROR_EAGAIN != rc && rc > 0); + } + if (rc < 0 && LIBSSH2_ERROR_EAGAIN != rc) { + [self debugMsg:@"error reading from socket. exiting..."]; + break; + } + + ssize_t towrite = 0; + + if (pfds[1].revents & POLLIN) { + // Input from stream + if (feof(_stream.in)) { + // Propagate the EOF to the other end + libssh2_channel_send_eof(_channel); + } + towrite = fread(streambuf, 1, BUFSIZ, _stream.in); + rc = 0; + do { + rc = libssh2_channel_write(_channel, streambuf + rc, towrite); + towrite -= rc; + } while (LIBSSH2_ERROR_EAGAIN != rc && rc > 0 && towrite > 0); + memset(streambuf, 0, BUFSIZ); + } + if (rc < 0 && LIBSSH2_ERROR_EAGAIN != rc) { + [self debugMsg:@"error writing to socket. exiting..."]; + break; + } + } while (1); + + // Free resources and try to cleanup + [self unset_nonblock:_sock]; + [self unset_nonblock:fileno(_stream.in)]; + + while ((rc = libssh2_channel_close(_channel)) == LIBSSH2_ERROR_EAGAIN) + waitsocket(_sock, _session); + + CFRelease(*libssh2_session_abstract(_session)); + libssh2_channel_free(_channel); + libssh2_session_free(_session); + _channel = NULL; + + if (rc < 0) { + return -1; + } + + return 0; +} + +@end diff --git a/Sessions/Session.h b/Sessions/Session.h new file mode 100644 index 000000000..491226bc7 --- /dev/null +++ b/Sessions/Session.h @@ -0,0 +1,73 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import + +#include + +#import "TermController.h" + + +typedef struct SessionParams { + CFTypeRef session; + const char *args; + bool attached; +} SessionParams; + +@interface TermStream : NSObject + +@property FILE *in; +@property FILE *out; +@property FILE *err; +@property TermController *control; +@property struct winsize *sz; + +- (void)close; + +@end + + +@interface Session : NSObject { + TermStream *_stream; + pthread_t _tid; +} + +@property TermStream *stream; + +- (id)init __unavailable; +- (id)initWithStream:(TermStream *)stream; +- (void)executeWithArgs:(NSString *)args; +- (void)executeAttachedWithArgs:(NSString *)args; +- (int)main:(int)argc argv:(char **)argv; +- (void)sigwinch; +- (void)kill; + +@end diff --git a/Sessions/Session.m b/Sessions/Session.m new file mode 100644 index 000000000..22ab7a471 --- /dev/null +++ b/Sessions/Session.m @@ -0,0 +1,159 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include + +#import "Session.h" +#import "fterm.h" + + +int makeargs(const char *args, char ***aa) +{ + char *buf = strdup(args); + int c = 1; + char *delim; + char **argv = calloc(c, sizeof(char *)); + + argv[0] = buf; + + while ((delim = strchr(argv[c - 1], ' '))) { + argv = realloc(argv, (c + 1) * sizeof(char *)); + argv[c] = delim + 1; + *delim = 0x00; + c++; + } + + argv = realloc(argv, (c + 1) * sizeof(char *)); + argv[c] = NULL; + + *aa = argv; + + return c; +} + +void *run_session(void *params) +{ + SessionParams *p = (SessionParams *)params; + // Object back to ARC + Session *session = (Session *)CFBridgingRelease(p->session); + char **argv; + int argc = makeargs(p->args, &argv); + [session main:argc argv:argv]; + free(argv); + free(params); + + //if (!p->attached) { + [session.stream close]; + //} + + session.stream = nil; + return NULL; +} + +@implementation TermStream + +- (void)close +{ + if (_in) { + fclose(_in); + _in = NULL; + } + if (_out) { + fclose(_out); + _out = NULL; + } + if (_err) { + fclose(_err); + _err = NULL; + } + _sz = NULL; + _control = nil; +} + +@end + +@implementation Session + +- (id)initWithStream:(TermStream *)stream +{ + self = [super init]; + + if (self) { + _stream = [[TermStream alloc] init]; + _stream.in = fdopen(dup(fileno(stream.in)), "r"); + + // If there is no underlying descriptor (writing to the WV), then duplicate the fterm. + _stream.out = fdopen(dup(fileno(stream.out)), "w"); + if (_stream.out == NULL) { + _stream.out = fterm_open(stream.control.terminal, 0); + } + _stream.err = fdopen(dup(fileno(stream.err)), "w"); + if (_stream.err == NULL) { + _stream.err = fterm_open(stream.control.terminal, 0); + } + + _stream.control = stream.control; + _stream.sz = stream.sz; + } + + return self; +} + +- (void)executeWithArgs:(NSString *)args +{ + SessionParams *params = malloc(sizeof(SessionParams)); + // Pointer to our struct, we are responsible of release + params->session = CFBridgingRetain(self); + params->args = [args UTF8String]; + params->attached = false; + + pthread_attr_t attr; + pthread_attr_init(&attr); + pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); + pthread_create(&_tid, &attr, run_session, params); +} + +- (void)executeAttachedWithArgs:(NSString *)args +{ + SessionParams *params = malloc(sizeof(SessionParams)); + // Pointer to our struct, we are responsible of release + params->session = CFBridgingRetain(self); + params->args = [args UTF8String]; + params->attached = true; + + pthread_create(&_tid, NULL, run_session, params); + pthread_join(_tid, NULL); +} + +@end diff --git a/Sessions/linenoise.c b/Sessions/linenoise.c new file mode 100644 index 000000000..863f78cca --- /dev/null +++ b/Sessions/linenoise.c @@ -0,0 +1,1094 @@ +/* linenoise.c -- VERSION 1.0 + * + * Guerrilla line editing library against the idea that a line editing lib + * needs to be 20,000 lines of C code. + * + * You can find the latest source code at: + * + * http://github.com/antirez/linenoise + * + * Does a number of crazy assumptions that happen to be true in 99.9999% of + * the 2010 UNIX computers around. + * + * ------------------------------------------------------------------------ + * + * Copyright (c) 2010-2014, Salvatore Sanfilippo + * Copyright (c) 2010-2013, Pieter Noordhuis + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 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 + * HOLDER 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. + * + * ------------------------------------------------------------------------ + * + * References: + * - http://invisible-island.net/xterm/ctlseqs/ctlseqs.html + * - http://www.3waylabs.com/nw/WWW/products/wizcon/vt220.html + * + * Todo list: + * - Filter bogus Ctrl+ combinations. + * - Win32 support + * + * Bloat: + * - History search like Ctrl+r in readline? + * + * List of escape sequences used by this program, we do everything just + * with three sequences. In order to be so cheap we may have some + * flickering effect with some slow terminal, but the lesser sequences + * the more compatible. + * + * EL (Erase Line) + * Sequence: ESC [ n K + * Effect: if n is 0 or missing, clear from cursor to end of line + * Effect: if n is 1, clear from beginning of line to cursor + * Effect: if n is 2, clear entire line + * + * CUF (CUrsor Forward) + * Sequence: ESC [ n C + * Effect: moves cursor forward n chars + * + * CUB (CUrsor Backward) + * Sequence: ESC [ n D + * Effect: moves cursor backward n chars + * + * The following is used to get the terminal width if getting + * the width with the TIOCGWINSZ ioctl fails + * + * DSR (Device Status Report) + * Sequence: ESC [ 6 n + * Effect: reports the current cusor position as ESC [ n ; m R + * where n is the row and m is the column + * + * When multi line mode is enabled, we also use an additional escape + * sequence. However multi line editing is disabled by default. + * + * CUU (Cursor Up) + * Sequence: ESC [ n A + * Effect: moves cursor up of n chars. + * + * CUD (Cursor Down) + * Sequence: ESC [ n B + * Effect: moves cursor down of n chars. + * + * When linenoiseClearScreen() is called, two additional escape sequences + * are used in order to clear the screen and position the cursor at home + * position. + * + * CUP (Cursor position) + * Sequence: ESC [ H + * Effect: moves the cursor to upper left corner + * + * ED (Erase display) + * Sequence: ESC [ 2 J + * Effect: clear the whole screen + * + */ + +//#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "linenoise.h" + +#define LINENOISE_DEFAULT_HISTORY_MAX_LEN 100 +#define LINENOISE_MAX_LINE 4096 +static char *unsupported_term[] = {"dumb","cons25","emacs",NULL}; +static linenoiseCompletionCallback *completionCallback = NULL; + +//static struct termios orig_termios; /* In order to restore at exit.*/ +static int rawmode = 0; /* For atexit() function to check if restore is needed*/ +static int mlmode = 0; /* Multi line mode. Default is single line. */ +static int atexit_registered = 0; /* Register atexit just 1 time. */ +static int history_max_len = LINENOISE_DEFAULT_HISTORY_MAX_LEN; +static int history_len = 0; +static char **history = NULL; + +/* The linenoiseState structure represents the state during line editing. + * We pass this state to functions implementing specific editing + * functionalities. */ +struct linenoiseState { + int ifd; /* Terminal stdin file descriptor. */ + FILE *ofd; /* Terminal stdout file descriptor. */ + char *buf; /* Edited line buffer. */ + size_t buflen; /* Edited line buffer size. */ + const char *prompt; /* Prompt to display. */ + size_t plen; /* Prompt length. */ + size_t pos; /* Current cursor position. */ + size_t oldpos; /* Previous refresh cursor position. */ + size_t len; /* Current edited line length. */ + //size_t cols; /* Number of columns in terminal. */ + struct winsize *sz; + size_t maxrows; /* Maximum num of rows used so far (multiline mode) */ + int history_index; /* The history index we are currently editing. */ +}; + +enum KEY_ACTION{ + KEY_NULL = 0, /* NULL */ + CTRL_A = 1, /* Ctrl+a */ + CTRL_B = 2, /* Ctrl-b */ + CTRL_C = 3, /* Ctrl-c */ + CTRL_D = 4, /* Ctrl-d */ + CTRL_E = 5, /* Ctrl-e */ + CTRL_F = 6, /* Ctrl-f */ + CTRL_H = 8, /* Ctrl-h */ + TAB = 9, /* Tab */ + RETURN = 10, /* Enter */ + CTRL_K = 11, /* Ctrl+k */ + CTRL_L = 12, /* Ctrl+l */ + CRET = 13, /* Carriage Return */ + CTRL_N = 14, /* Ctrl-n */ + CTRL_P = 16, /* Ctrl-p */ + CTRL_T = 20, /* Ctrl-t */ + CTRL_U = 21, /* Ctrl+u */ + CTRL_W = 23, /* Ctrl+w */ + ESC = 27, /* Escape */ + BACKSPACE = 127 /* Backspace */ +}; + +static void linenoiseAtExit(void); +int linenoiseHistoryAdd(const char *line); +static void refreshLine(struct linenoiseState *l); + +/* Debugging macro. */ +#if 0 +FILE *lndebug_fp = NULL; +#define lndebug(...) \ + do { \ + if (lndebug_fp == NULL) { \ + lndebug_fp = fopen("/tmp/lndebug.txt","a"); \ + fprintf(lndebug_fp, \ + "[%d %d %d] p: %d, rows: %d, rpos: %d, max: %d, oldmax: %d\n", \ + (int)l->len,(int)l->pos,(int)l->oldpos,plen,rows,rpos, \ + (int)l->maxrows,old_rows); \ + } \ + fprintf(lndebug_fp, ", " __VA_ARGS__); \ + fflush(lndebug_fp); \ + } while (0) +#else +#define lndebug(fmt, ...) +#endif + +/* ======================= Low level terminal handling ====================== */ + +/* Set if to use or not the multi line mode. */ +void linenoiseSetMultiLine(int ml) { + mlmode = ml; +} + +/* Return true if the terminal name is in the list of terminals we know are + * not able to understand basic escape sequences. */ +static int isUnsupportedTerm(void) { + char *term = getenv("TERM"); + int j; + + if (term == NULL) return 0; + for (j = 0; unsupported_term[j]; j++) + if (!strcasecmp(term,unsupported_term[j])) return 1; + return 0; +} + +/* Raw mode: 1960 magic shit. */ +static int enableRawMode(int fd) { + /* struct termios raw; */ + +/* if (!isatty(STDIN_FILENO)) goto fatal; */ +/* if (!atexit_registered) { */ +/* atexit(linenoiseAtExit); */ +/* atexit_registered = 1; */ +/* } */ +/* if (tcgetattr(fd,&orig_termios) == -1) goto fatal; */ + +/* raw = orig_termios; /\* modify the original mode *\/ */ +/* /\* input modes: no break, no CR to NL, no parity check, no strip char, */ +/* * no start/stop output control. *\/ */ +/* raw.c_iflag &= ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON); */ +/* /\* output modes - disable post processing *\/ */ +/* raw.c_oflag &= ~(OPOST); */ +/* /\* control modes - set 8 bit chars *\/ */ +/* raw.c_cflag |= (CS8); */ +/* /\* local modes - choing off, canonical off, no extended functions, */ +/* * no signal chars (^Z,^C) *\/ */ +/* raw.c_lflag &= ~(ECHO | ICANON | IEXTEN | ISIG); */ +/* /\* control chars - set return condition: min number of bytes and timer. */ +/* * We want read to return every single byte, without timeout. *\/ */ +/* raw.c_cc[VMIN] = 1; raw.c_cc[VTIME] = 0; /\* 1 byte, no timer *\/ */ + +/* /\* put terminal in raw mode after flushing *\/ */ +/* if (tcsetattr(fd,TCSAFLUSH,&raw) < 0) goto fatal; */ +/* rawmode = 1; */ +/* return 0; */ + +/* fatal: */ +/* errno = ENOTTY; */ + return -1; +} + +static void disableRawMode(int fd) { + /* Don't even check the return value as it's too late. */ + /* if (rawmode && tcsetattr(fd,TCSAFLUSH,&orig_termios) != -1) */ + /* rawmode = 0; */ +} + +/* Use the ESC [6n escape sequence to query the horizontal cursor position + * and return it. On error -1 is returned, on success the position of the + * cursor. */ +static int getCursorPosition(int ifd, int ofd) { + /* char buf[32]; */ + /* int cols, rows; */ + /* unsigned int i = 0; */ + + /* /\* Report cursor location *\/ */ + /* if (write(ofd, "\x1b[6n", 4) != 4) return -1; */ + + + /* /\* Read the response: ESC [ rows ; cols R *\/ */ + /* while (i < sizeof(buf)-1) { */ + /* if (read(ifd,buf+i,1) != 1) break; */ + /* if (buf[i] == 'R') break; */ + /* i++; */ + /* } */ + /* buf[i] = '\0'; */ + + /* /\* Parse it. *\/ */ + /* if (buf[0] != ESC || buf[1] != '[') return -1; */ + /* if (sscanf(buf+2,"%d;%d",&rows,&cols) != 2) return -1; */ + /* return cols; */ + return 0; +} + +/* Try to get the number of columns in the current terminal, or assume 80 + * if it fails. */ +static int getColumns(int ifd, FILE *ofd) { + struct winsize ws; + goto failed; + /* if (ioctl(1, TIOCGWINSZ, &ws) == -1 || ws.ws_col == 0) { */ + /* /\* ioctl() failed. Try to query the terminal itself. *\/ */ + /* int start, cols; */ + + /* /\* Get the initial position so we can restore it later. *\/ */ + /* start = getCursorPosition(ifd,ofd); */ + /* if (start == -1) goto failed; */ + + /* /\* Go to right margin and get position. *\/ */ + /* if (write(ofd,"\x1b[999C",6) != 6) goto failed; */ + /* cols = getCursorPosition(ifd,ofd); */ + /* if (cols == -1) goto failed; */ + + /* /\* Restore position. *\/ */ + /* if (cols > start) { */ + /* char seq[32]; */ + /* snprintf(seq,32,"\x1b[%dD",cols-start); */ + /* if (write(ofd,seq,strlen(seq)) == -1) { */ + /* /\* Can't recover... *\/ */ + /* } */ + /* } */ + /* return cols; */ + /* } else { */ + /* return ws.ws_col; */ + /* } */ + +failed: + return 80; +} + +/* Clear the screen. Used to handle ctrl+l */ +void linenoiseClearScreen(struct linenoiseState *ls) { + if (fwrite("\x1b[H\x1b[2J",1, 7, ls->ofd) <= 0) { + /* nothing to do, just to avoid warning. */ + } +} + +/* Beep, used for completion when there is nothing to complete or when all + * the choices were already shown. */ +static void linenoiseBeep(void) { + fprintf(stderr, "\x7"); + fflush(stderr); +} + +/* ============================== Completion ================================ */ + +/* Free a list of completion option populated by linenoiseAddCompletion(). */ +static void freeCompletions(linenoiseCompletions *lc) { + size_t i; + for (i = 0; i < lc->len; i++) + free(lc->cvec[i]); + if (lc->cvec != NULL) + free(lc->cvec); +} + +/* This is an helper function for linenoiseEdit() and is called when the + * user types the key in order to complete the string currently in the + * input. + * + * The state of the editing is encapsulated into the pointed linenoiseState + * structure as described in the structure definition. */ +static int completeLine(struct linenoiseState *ls) { + linenoiseCompletions lc = { 0, NULL }; + int nread, nwritten; + char c = 0; + + completionCallback(ls->buf,&lc); + if (lc.len == 0) { + linenoiseBeep(); + } else { + size_t stop = 0, i = 0; + + while(!stop) { + /* Show completion or original buffer */ + if (i < lc.len) { + struct linenoiseState saved = *ls; + + ls->len = ls->pos = strlen(lc.cvec[i]); + ls->buf = lc.cvec[i]; + refreshLine(ls); + ls->len = saved.len; + ls->pos = saved.pos; + ls->buf = saved.buf; + } else { + refreshLine(ls); + } + + nread = read(ls->ifd,&c,1); + if (nread <= 0) { + freeCompletions(&lc); + return -1; + } + + switch(c) { + case 9: /* tab */ + i = (i+1) % (lc.len+1); + if (i == lc.len) linenoiseBeep(); + break; + case 27: /* escape */ + /* Re-show original buffer */ + if (i < lc.len) refreshLine(ls); + stop = 1; + break; + default: + /* Update buffer and return */ + if (i < lc.len) { + nwritten = snprintf(ls->buf,ls->buflen,"%s",lc.cvec[i]); + ls->len = ls->pos = nwritten; + } + stop = 1; + break; + } + } + } + + freeCompletions(&lc); + return c; /* Return last read character */ +} + +/* Register a callback function to be called for tab-completion. */ +void linenoiseSetCompletionCallback(linenoiseCompletionCallback *fn) { + completionCallback = fn; +} + +/* This function is used by the callback function registered by the user + * in order to add completion options given the input string when the + * user typed . See the example.c source code for a very easy to + * understand example. */ +void linenoiseAddCompletion(linenoiseCompletions *lc, const char *str) { + size_t len = strlen(str); + char *copy, **cvec; + + copy = malloc(len+1); + if (copy == NULL) return; + memcpy(copy,str,len+1); + cvec = realloc(lc->cvec,sizeof(char*)*(lc->len+1)); + if (cvec == NULL) { + free(copy); + return; + } + lc->cvec = cvec; + lc->cvec[lc->len++] = copy; +} + +/* =========================== Line editing ================================= */ + +/* We define a very simple "append buffer" structure, that is an heap + * allocated string where we can append to. This is useful in order to + * write all the escape sequences in a buffer and flush them to the standard + * output in a single call, to avoid flickering effects. */ +struct abuf { + char *b; + int len; +}; + +static void abInit(struct abuf *ab) { + ab->b = NULL; + ab->len = 0; +} + +static void abAppend(struct abuf *ab, const char *s, int len) { + char *new = realloc(ab->b,ab->len+len); + + if (new == NULL) return; + memcpy(new+ab->len,s,len); + ab->b = new; + ab->len += len; +} + +static void abFree(struct abuf *ab) { + free(ab->b); +} + +/* Single line low level line refresh. + * + * Rewrite the currently edited line accordingly to the buffer content, + * cursor position, and number of columns of the terminal. */ +static void refreshSingleLine(struct linenoiseState *l) { + char seq[64]; + size_t plen = strlen(l->prompt); + FILE *f = l->ofd; + char *buf = l->buf; + size_t len = l->len; + size_t pos = l->pos; + struct abuf ab; + + while((plen+pos) >= l->sz->ws_col) { + buf++; + len--; + pos--; + } + while (plen+len > l->sz->ws_col) { + len--; + } + + abInit(&ab); + /* Cursor to left edge */ + snprintf(seq,64,"\r"); + abAppend(&ab,seq,strlen(seq)); + /* Write the prompt and the current buffer content */ + abAppend(&ab,l->prompt,strlen(l->prompt)); + abAppend(&ab,buf,len); + /* Erase to right */ + snprintf(seq,64,"\x1b[0K"); + abAppend(&ab,seq,strlen(seq)); + /* Move cursor to original position. */ + snprintf(seq,64,"\r\x1b[%dC", (int)(pos+plen)); + abAppend(&ab,seq,strlen(seq)); + if (fwrite(ab.b,1,ab.len,f) == -1) {} /* Can't recover from write error. */ + abFree(&ab); +} + +/* Multi line low level line refresh. + * + * Rewrite the currently edited line accordingly to the buffer content, + * cursor position, and number of columns of the terminal. */ +static void refreshMultiLine(struct linenoiseState *l) { + char seq[64]; + int plen = strlen(l->prompt); + int rows = (plen+l->len+l->sz->ws_col-1)/l->sz->ws_col; /* rows used by current buf. */ + int rpos = (plen+l->oldpos+l->sz->ws_col)/l->sz->ws_col; /* cursor relative row. */ + int rpos2; /* rpos after refresh. */ + int col; /* colum position, zero-based. */ + int old_rows = l->maxrows; + FILE *f = l->ofd; + int j; + struct abuf ab; + + /* Update maxrows if needed. */ + if (rows > (int)l->maxrows) l->maxrows = rows; + + /* First step: clear all the lines used before. To do so start by + * going to the last row. */ + abInit(&ab); + if (old_rows-rpos > 0) { + lndebug("go down %d", old_rows-rpos); + snprintf(seq,64,"\x1b[%dB", old_rows-rpos); + abAppend(&ab,seq,strlen(seq)); + } + + /* Now for every row clear it, go up. */ + for (j = 0; j < old_rows-1; j++) { + lndebug("clear+up"); + snprintf(seq,64,"\r\x1b[0K\x1b[1A"); + abAppend(&ab,seq,strlen(seq)); + } + + /* Clean the top line. */ + lndebug("clear"); + snprintf(seq,64,"\r\x1b[0K"); + abAppend(&ab,seq,strlen(seq)); + + /* Write the prompt and the current buffer content */ + abAppend(&ab,l->prompt,strlen(l->prompt)); + abAppend(&ab,l->buf,l->len); + + /* If we are at the very end of the screen with our prompt, we need to + * emit a newline and move the prompt to the first column. */ + if (l->pos && + l->pos == l->len && + (l->pos+plen) % l->sz->ws_col == 0) + { + lndebug(""); + abAppend(&ab,"\n",1); + snprintf(seq,64,"\r"); + abAppend(&ab,seq,strlen(seq)); + rows++; + if (rows > (int)l->maxrows) l->maxrows = rows; + } + + /* Move cursor to right position. */ + rpos2 = (plen+l->pos+l->sz->ws_col)/l->sz->ws_col; /* current cursor relative row. */ + lndebug("rpos2 %d", rpos2); + + /* Go up till we reach the expected positon. */ + if (rows-rpos2 > 0) { + lndebug("go-up %d", rows-rpos2); + snprintf(seq,64,"\x1b[%dA", rows-rpos2); + abAppend(&ab,seq,strlen(seq)); + } + + /* Set column. */ + col = (plen+(int)l->pos) % (int)l->sz->ws_col; + lndebug("set col %d", 1+col); + if (col) + snprintf(seq,64,"\r\x1b[%dC", col); + else + snprintf(seq,64,"\r"); + abAppend(&ab,seq,strlen(seq)); + + lndebug("\n"); + l->oldpos = l->pos; + + if (fwrite(ab.b,1,ab.len,f) == -1) {} /* Can't recover from write error. */ + abFree(&ab); +} + +/* Calls the two low level functions refreshSingleLine() or + * refreshMultiLine() according to the selected mode. */ +static void refreshLine(struct linenoiseState *l) { + if (mlmode) + refreshMultiLine(l); + else + refreshSingleLine(l); +} + +/* Insert the character 'c' at cursor current position. + * + * On error writing to the terminal -1 is returned, otherwise 0. */ +int linenoiseEditInsert(struct linenoiseState *l, char c) { + if (l->len < l->buflen) { + if (l->len == l->pos) { + l->buf[l->pos] = c; + l->pos++; + l->len++; + l->buf[l->len] = '\0'; + if ((!mlmode && l->plen+l->len < l->sz->ws_col) /* || mlmode */) { + /* Avoid a full update of the line in the + * trivial case. */ + if (fwrite(&c,1,1,l->ofd) == -1) return -1; + } else { + refreshLine(l); + } + } else { + memmove(l->buf+l->pos+1,l->buf+l->pos,l->len-l->pos); + l->buf[l->pos] = c; + l->len++; + l->pos++; + l->buf[l->len] = '\0'; + refreshLine(l); + } + } + return 0; +} + +/* Move cursor on the left. */ +void linenoiseEditMoveLeft(struct linenoiseState *l) { + if (l->pos > 0) { + l->pos--; + refreshLine(l); + } +} + +/* Move cursor on the right. */ +void linenoiseEditMoveRight(struct linenoiseState *l) { + if (l->pos != l->len) { + l->pos++; + refreshLine(l); + } +} + +/* Move cursor to the start of the line. */ +void linenoiseEditMoveHome(struct linenoiseState *l) { + if (l->pos != 0) { + l->pos = 0; + refreshLine(l); + } +} + +/* Move cursor to the end of the line. */ +void linenoiseEditMoveEnd(struct linenoiseState *l) { + if (l->pos != l->len) { + l->pos = l->len; + refreshLine(l); + } +} + +/* Substitute the currently edited line with the next or previous history + * entry as specified by 'dir'. */ +#define LINENOISE_HISTORY_NEXT 0 +#define LINENOISE_HISTORY_PREV 1 +void linenoiseEditHistoryNext(struct linenoiseState *l, int dir) { + if (history_len > 1) { + /* Update the current history entry before to + * overwrite it with the next one. */ + free(history[history_len - 1 - l->history_index]); + history[history_len - 1 - l->history_index] = strdup(l->buf); + /* Show the new entry */ + l->history_index += (dir == LINENOISE_HISTORY_PREV) ? 1 : -1; + if (l->history_index < 0) { + l->history_index = 0; + return; + } else if (l->history_index >= history_len) { + l->history_index = history_len-1; + return; + } + strncpy(l->buf,history[history_len - 1 - l->history_index],l->buflen); + l->buf[l->buflen-1] = '\0'; + l->len = l->pos = strlen(l->buf); + refreshLine(l); + } +} + +/* Delete the character at the right of the cursor without altering the cursor + * position. Basically this is what happens with the "Delete" keyboard key. */ +void linenoiseEditDelete(struct linenoiseState *l) { + if (l->len > 0 && l->pos < l->len) { + memmove(l->buf+l->pos,l->buf+l->pos+1,l->len-l->pos-1); + l->len--; + l->buf[l->len] = '\0'; + refreshLine(l); + } +} + +/* Backspace implementation. */ +void linenoiseEditBackspace(struct linenoiseState *l) { + if (l->pos > 0 && l->len > 0) { + memmove(l->buf+l->pos-1,l->buf+l->pos,l->len-l->pos); + l->pos--; + l->len--; + l->buf[l->len] = '\0'; + refreshLine(l); + } +} + +/* Delete the previosu word, maintaining the cursor at the start of the + * current word. */ +void linenoiseEditDeletePrevWord(struct linenoiseState *l) { + size_t old_pos = l->pos; + size_t diff; + + while (l->pos > 0 && l->buf[l->pos-1] == ' ') + l->pos--; + while (l->pos > 0 && l->buf[l->pos-1] != ' ') + l->pos--; + diff = old_pos - l->pos; + memmove(l->buf+l->pos,l->buf+old_pos,l->len-old_pos+1); + l->len -= diff; + refreshLine(l); +} + +/* This function is the core of the line editing capability of linenoise. + * It expects 'fd' to be already in "raw mode" so that every key pressed + * will be returned ASAP to read(). + * + * The resulting string is put into 'buf' when the user type enter, or + * when ctrl+d is typed. + * + * The function returns the length of the current buffer. */ +int linenoiseEdit(int stdin_fd, FILE *fstdout, char *buf, size_t buflen, const char *prompt, struct winsize *size) +{ + struct linenoiseState l; + + /* Populate the linenoise state that we pass to functions implementing + * specific editing functionalities. */ + l.ifd = stdin_fd; + l.ofd = fstdout; + l.buf = buf; + l.buflen = buflen; + l.prompt = prompt; + l.plen = strlen(prompt); + l.oldpos = l.pos = 0; + l.len = 0; + //l.cols = getColumns(stdin_fd, fstdout); + l.sz = size; + l.maxrows = 0; + l.history_index = 0; + + /* Buffer starts empty. */ + l.buf[0] = '\0'; + l.buflen--; /* Make sure there is always space for the nulterm */ + + /* The latest history entry is always our current buffer, that + * initially is just an empty string. */ + linenoiseHistoryAdd(""); + + if (fwrite(prompt,1,l.plen,l.ofd) == -1) return -1; + while(1) { + char c; + int nread; + char seq[3]; + + if (l.ifd == NULL) break; + nread = read(l.ifd,&c,1); + if (nread <= 0) return l.len; + + /* Only autocomplete when the callback is set. It returns < 0 when + * there was an error reading from fd. Otherwise it will return the + * character that should be handled next. */ + if (c == 9 && completionCallback != NULL) { + c = completeLine(&l); + /* Return on errors */ + if (c < 0) return l.len; + /* Read next character when 0 */ + if (c == 0) continue; + } + + switch(c) { + case RETURN: /* enter */ + case CRET: + history_len--; + free(history[history_len]); + if (mlmode) linenoiseEditMoveEnd(&l); + fprintf(l.ofd, "\r\n"); + return (int)l.len; + case CTRL_C: /* ctrl-c */ + errno = EAGAIN; + return -1; + case BACKSPACE: /* backspace */ + case 8: /* ctrl-h */ + linenoiseEditBackspace(&l); + break; + case CTRL_D: /* ctrl-d, remove char at right of cursor, or if the + line is empty, act as end-of-file. */ + if (l.len > 0) { + linenoiseEditDelete(&l); + } else { + history_len--; + free(history[history_len]); + return -1; + } + break; + case CTRL_T: /* ctrl-t, swaps current character with previous. */ + if (l.pos > 0 && l.pos < l.len) { + int aux = buf[l.pos-1]; + buf[l.pos-1] = buf[l.pos]; + buf[l.pos] = aux; + if (l.pos != l.len-1) l.pos++; + refreshLine(&l); + } + break; + case CTRL_B: /* ctrl-b */ + linenoiseEditMoveLeft(&l); + break; + case CTRL_F: /* ctrl-f */ + linenoiseEditMoveRight(&l); + break; + case CTRL_P: /* ctrl-p */ + linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_PREV); + break; + case CTRL_N: /* ctrl-n */ + linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_NEXT); + break; + case ESC: /* escape sequence */ + /* Read the next two bytes representing the escape sequence. + * Use two calls to handle slow terminals returning the two + * chars at different times. */ + if (read(l.ifd,seq,1) == -1) break; + if (read(l.ifd,seq+1,1) == -1) break; + + /* ESC [ sequences. */ + if (seq[0] == '[') { + if (seq[1] >= '0' && seq[1] <= '9') { + /* Extended escape, read additional byte. */ + if (read(l.ifd,seq+2,1) == -1) break; + if (seq[2] == '~') { + switch(seq[1]) { + case '3': /* Delete key. */ + linenoiseEditDelete(&l); + break; + } + } + } else { + switch(seq[1]) { + case 'A': /* Up */ + linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_PREV); + break; + case 'B': /* Down */ + linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_NEXT); + break; + case 'C': /* Right */ + linenoiseEditMoveRight(&l); + break; + case 'D': /* Left */ + linenoiseEditMoveLeft(&l); + break; + case 'H': /* Home */ + linenoiseEditMoveHome(&l); + break; + case 'F': /* End*/ + linenoiseEditMoveEnd(&l); + break; + } + } + } + + /* ESC O sequences. */ + else if (seq[0] == 'O') { + switch(seq[1]) { + case 'H': /* Home */ + linenoiseEditMoveHome(&l); + break; + case 'F': /* End*/ + linenoiseEditMoveEnd(&l); + break; + } + } + break; + default: + if (linenoiseEditInsert(&l,c)) return -1; + break; + case CTRL_U: /* Ctrl+u, delete the whole line. */ + buf[0] = '\0'; + l.pos = l.len = 0; + refreshLine(&l); + break; + case CTRL_K: /* Ctrl+k, delete from current to end of line. */ + buf[l.pos] = '\0'; + l.len = l.pos; + refreshLine(&l); + break; + case CTRL_A: /* Ctrl+a, go to the start of the line */ + linenoiseEditMoveHome(&l); + break; + case CTRL_E: /* ctrl+e, go to the end of the line */ + linenoiseEditMoveEnd(&l); + break; + case CTRL_L: /* ctrl+l, clear screen */ + linenoiseClearScreen(&l); + refreshLine(&l); + break; + case CTRL_W: /* ctrl+w, delete previous word */ + linenoiseEditDeletePrevWord(&l); + break; + } + } + return l.len; +} + +/* This special mode is used by linenoise in order to print scan codes + * on screen for debugging / development purposes. It is implemented + * by the linenoise_example program using the --keycodes option. */ +void linenoisePrintKeyCodes(void) { + char quit[4]; + + printf("Linenoise key codes debugging mode.\n" + "Press keys to see scan codes. Type 'quit' at any time to exit.\n"); + if (enableRawMode(STDIN_FILENO) == -1) return; + memset(quit,' ',4); + while(1) { + char c; + int nread; + + nread = read(STDIN_FILENO,&c,1); + if (nread <= 0) continue; + memmove(quit,quit+1,sizeof(quit)-1); /* shift string to left. */ + quit[sizeof(quit)-1] = c; /* Insert current char on the right. */ + if (memcmp(quit,"quit",sizeof(quit)) == 0) break; + + printf("'%c' %02x (%d) (type quit to exit)\n", + isprint(c) ? c : '?', (int)c, (int)c); + printf("\r"); /* Go left edge manually, we are in raw mode. */ + fflush(stdout); + } + disableRawMode(STDIN_FILENO); +} + +/* This function calls the line editing function linenoiseEdit() using + * the STDIN file descriptor set in raw mode. */ +static int linenoiseRaw(char *buf, size_t buflen, const char *prompt) { + int count; + + if (buflen == 0) { + errno = EINVAL; + return -1; + } + + /* /\* Interactive editing. *\/ */ + /* if (enableRawMode(STDIN_FILENO) == -1) return -1; */ + /* count = linenoiseEdit(STDIN_FILENO, STDOUT_FILENO, buf, buflen, prompt); */ + /* disableRawMode(STDIN_FILENO); */ + /* printf("\n"); */ + + return count; +} + +/* The high level function that is the main API of the linenoise library. + * This function checks if the terminal has basic capabilities, just checking + * for a blacklist of stupid terminals, and later either calls the line + * editing function or uses dummy fgets() so that you will be able to type + * something even in the most desperate of the conditions. */ +char *linenoise(const char *prompt) { + char buf[LINENOISE_MAX_LINE]; + int count; + + count = linenoiseRaw(buf,LINENOISE_MAX_LINE,prompt); + if (count == -1) return NULL; + return strdup(buf); +} + +/* ================================ History ================================= */ + +/* Free the history, but does not reset it. Only used when we have to + * exit() to avoid memory leaks are reported by valgrind & co. */ +static void freeHistory(void) { + if (history) { + int j; + + for (j = 0; j < history_len; j++) + free(history[j]); + free(history); + } +} + +/* At exit we'll try to fix the terminal to the initial conditions. */ +static void linenoiseAtExit(void) { + disableRawMode(STDIN_FILENO); + freeHistory(); +} + +/* This is the API call to add a new entry in the linenoise history. + * It uses a fixed array of char pointers that are shifted (memmoved) + * when the history max length is reached in order to remove the older + * entry and make room for the new one, so it is not exactly suitable for huge + * histories, but will work well for a few hundred of entries. + * + * Using a circular buffer is smarter, but a bit more complex to handle. */ +int linenoiseHistoryAdd(const char *line) { + char *linecopy; + + if (history_max_len == 0) return 0; + + /* Initialization on first call. */ + if (history == NULL) { + history = malloc(sizeof(char*)*history_max_len); + if (history == NULL) return 0; + memset(history,0,(sizeof(char*)*history_max_len)); + } + + /* Don't add duplicated lines. */ + if (history_len && !strcmp(history[history_len-1], line)) return 0; + + /* Add an heap allocated copy of the line in the history. + * If we reached the max length, remove the older line. */ + linecopy = strdup(line); + if (!linecopy) return 0; + if (history_len == history_max_len) { + free(history[0]); + memmove(history,history+1,sizeof(char*)*(history_max_len-1)); + history_len--; + } + history[history_len] = linecopy; + history_len++; + return 1; +} + +/* Set the maximum length for the history. This function can be called even + * if there is already some history, the function will make sure to retain + * just the latest 'len' elements if the new history length value is smaller + * than the amount of items already inside the history. */ +int linenoiseHistorySetMaxLen(int len) { + char **new; + + if (len < 1) return 0; + if (history) { + int tocopy = history_len; + + new = malloc(sizeof(char*)*len); + if (new == NULL) return 0; + + /* If we can't copy everything, free the elements we'll not use. */ + if (len < tocopy) { + int j; + + for (j = 0; j < tocopy-len; j++) free(history[j]); + tocopy = len; + } + memset(new,0,sizeof(char*)*len); + memcpy(new,history+(history_len-tocopy), sizeof(char*)*tocopy); + free(history); + history = new; + } + history_max_len = len; + if (history_len > history_max_len) + history_len = history_max_len; + return 1; +} + +/* Save the history in the specified file. On success 0 is returned + * otherwise -1 is returned. */ +int linenoiseHistorySave(const char *filename) { + FILE *fp = fopen(filename,"w"); + int j; + + if (fp == NULL) return -1; + for (j = 0; j < history_len; j++) + fprintf(fp,"%s\n",history[j]); + fclose(fp); + return 0; +} + +/* Load the history from the specified file. If the file does not exist + * zero is returned and no operation is performed. + * + * If the file exists and the operation succeeded 0 is returned, otherwise + * on error -1 is returned. */ +int linenoiseHistoryLoad(const char *filename) { + FILE *fp = fopen(filename,"r"); + char buf[LINENOISE_MAX_LINE]; + + if (fp == NULL) return -1; + + while (fgets(buf,LINENOISE_MAX_LINE,fp) != NULL) { + char *p; + + p = strchr(buf,'\r'); + if (!p) p = strchr(buf,'\n'); + if (p) *p = '\0'; + linenoiseHistoryAdd(buf); + } + fclose(fp); + return 0; +} diff --git a/Sessions/linenoise.h b/Sessions/linenoise.h new file mode 100644 index 000000000..e1174d07c --- /dev/null +++ b/Sessions/linenoise.h @@ -0,0 +1,69 @@ +/* linenoise.h -- VERSION 1.0 + * + * Guerrilla line editing library against the idea that a line editing lib + * needs to be 20,000 lines of C code. + * + * See linenoise.c for more information. + * + * ------------------------------------------------------------------------ + * + * Copyright (c) 2010-2014, Salvatore Sanfilippo + * Copyright (c) 2010-2013, Pieter Noordhuis + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 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 + * HOLDER 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. + */ + +#ifndef __LINENOISE_H +#define __LINENOISE_H + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct linenoiseCompletions { + size_t len; + char **cvec; +} linenoiseCompletions; + +typedef void(linenoiseCompletionCallback)(const char *, linenoiseCompletions *); +void linenoiseSetCompletionCallback(linenoiseCompletionCallback *); +void linenoiseAddCompletion(linenoiseCompletions *, const char *); + + //char *linenoise(const char *prompt); + int linenoiseEdit(int stdin_fd, FILE *fstdout, char *buf, size_t buflen, const char *prompt, struct winsize *size); +int linenoiseHistoryAdd(const char *line); +int linenoiseHistorySetMaxLen(int len); +int linenoiseHistorySave(const char *filename); +int linenoiseHistoryLoad(const char *filename); +//void linenoiseClearScreen(); +void linenoiseSetMultiLine(int ml); +void linenoisePrintKeyCodes(void); + +#ifdef __cplusplus +} +#endif + +#endif /* __LINENOISE_H */ diff --git a/main.m b/main.m new file mode 100644 index 000000000..8040fe8d0 --- /dev/null +++ b/main.m @@ -0,0 +1,39 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// B L I N K +// +// Copyright (C) 2016 Blink Mobile Shell Project +// +// This file is part of Blink. +// +// Blink is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Blink is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Blink. If not, see . +// +// In addition, Blink is also subject to certain additional terms under +// GNU GPL version 3 section 7. +// +// You should have received a copy of these additional terms immediately +// following the terms and conditions of the GNU General Public License +// which accompanied the Blink Source Code. If not, see +// . +// +//////////////////////////////////////////////////////////////////////////////// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +}